diff options
author | ckelsel <ckelsel@hotmail.com> | 2017-07-10 08:10:15 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2017-07-10 08:10:15 +0800 |
commit | 465bbee520d1b1b57477fd7d80fbdeaf5e1e1e77 (patch) | |
tree | edae38568202ba41dee4a49f78884da313fd114b /src/nvim/screen.c | |
parent | 1514cdc7d8863eeee6b04883b1c50aac40048b49 (diff) | |
parent | 6725667d31591e8025589c4c1df34469f3bfdb52 (diff) | |
download | rneovim-465bbee520d1b1b57477fd7d80fbdeaf5e1e1e77.tar.gz rneovim-465bbee520d1b1b57477fd7d80fbdeaf5e1e1e77.tar.bz2 rneovim-465bbee520d1b1b57477fd7d80fbdeaf5e1e1e77.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 2f7fa8724f..a8353153fd 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -4230,7 +4230,6 @@ win_line ( * (regardless of the xn,am settings). * Only do this if the cursor is on the current line * (something has been written in it). - * Don't do this for the GUI. * Don't do this for double-width characters. * Don't do this for a window not at the right screen border. */ @@ -5846,12 +5845,12 @@ static void screen_char(unsigned off, int row, int col) if (row >= screen_Rows || col >= screen_Columns) return; - /* Outputting the last character on the screen may scrollup the screen. - * Don't to it! Mark the character invalid (update it when scrolled up) */ + // Outputting the last character on the screen may scrollup the screen. + // Don't to it! Mark the character invalid (update it when scrolled up) + // FIXME: The premise here is not actually true (cf. deferred wrap). if (row == screen_Rows - 1 && col == screen_Columns - 1 - /* account for first command-line character in rightleft mode */ - && !cmdmsg_rl - ) { + // account for first command-line character in rightleft mode + && !cmdmsg_rl) { ScreenAttrs[off] = (sattr_T)-1; return; } |