aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-07-07 00:34:37 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-07-07 00:34:37 +0200
commit105d680aea9f449c118520597a822e834a00c0ac (patch)
treee2fc89bc12416a10911da3088ee8aee2bb2ca404 /src/nvim/screen.c
parentc07e144c821abe2bcb7824c1c683ebf674d69754 (diff)
parent1ae7744f42fe60ebc2caa383be4d17e714c71c5f (diff)
downloadrneovim-105d680aea9f449c118520597a822e834a00c0ac.tar.gz
rneovim-105d680aea9f449c118520597a822e834a00c0ac.tar.bz2
rneovim-105d680aea9f449c118520597a822e834a00c0ac.zip
Merge #6816 'TUI improvements'
Removed these commits (test-suite changes): e2fba01910e0 7c809c4bc708 18e7cd9e9727
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c11
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;
}