Mercurial > vim
comparison src/terminal.c @ 16038:e7b18ce9ea2d v8.1.1024
patch 8.1.1024: stray log calls in terminal code
commit https://github.com/vim/vim/commit/697005f2cf0b41b22a673a67401a2c4d974e72d4
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 20 20:38:44 2019 +0100
patch 8.1.1024: stray log calls in terminal code
Problem: Stray log calls in terminal code. (Christian Brabandt)
Solution: Remove the calls.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 20 Mar 2019 20:45:06 +0100 |
parents | 5b29ab8415df |
children | cd5c83115ec6 |
comparison
equal
deleted
inserted
replaced
16037:da819dd2128e | 16038:e7b18ce9ea2d |
---|---|
1784 * otherwise end it. | 1784 * otherwise end it. |
1785 */ | 1785 */ |
1786 static void | 1786 static void |
1787 set_terminal_mode(term_T *term, int normal_mode) | 1787 set_terminal_mode(term_T *term, int normal_mode) |
1788 { | 1788 { |
1789 ch_log(NULL, "set_terminal_mode(): %d", normal_mode); | |
1790 term->tl_normal_mode = normal_mode; | 1789 term->tl_normal_mode = normal_mode; |
1791 if (!normal_mode) | 1790 if (!normal_mode) |
1792 handle_postponed_scrollback(term); | 1791 handle_postponed_scrollback(term); |
1793 VIM_CLEAR(term->tl_status_text); | 1792 VIM_CLEAR(term->tl_status_text); |
1794 if (term->tl_buffer == curbuf) | 1793 if (term->tl_buffer == curbuf) |
2852 { | 2851 { |
2853 // In Terminal-Normal mode the user interacts with the buffer, thus we | 2852 // In Terminal-Normal mode the user interacts with the buffer, thus we |
2854 // must not change it. Postpone adding the scrollback lines. | 2853 // must not change it. Postpone adding the scrollback lines. |
2855 gap = &term->tl_scrollback_postponed; | 2854 gap = &term->tl_scrollback_postponed; |
2856 update_buffer = FALSE; | 2855 update_buffer = FALSE; |
2857 ch_log(NULL, "handle_pushline(): add to postponed"); | |
2858 } | 2856 } |
2859 else | 2857 else |
2860 { | 2858 { |
2861 // First remove the lines that were appended before, the pushed line | 2859 // First remove the lines that were appended before, the pushed line |
2862 // goes above it. | 2860 // goes above it. |
2863 cleanup_scrollback(term); | 2861 cleanup_scrollback(term); |
2864 gap = &term->tl_scrollback; | 2862 gap = &term->tl_scrollback; |
2865 update_buffer = TRUE; | 2863 update_buffer = TRUE; |
2866 ch_log(NULL, "handle_pushline(): add to window"); | |
2867 } | 2864 } |
2868 | 2865 |
2869 limit_scrollback(term, gap, update_buffer); | 2866 limit_scrollback(term, gap, update_buffer); |
2870 | 2867 |
2871 if (ga_grow(gap, 1) == OK) | 2868 if (ga_grow(gap, 1) == OK) |