aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/move.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-11-03 14:40:22 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2018-11-11 09:54:03 +0100
commit520ec3dbfd208c99f9b184ab0a4baeab9a93b556 (patch)
treea2322de3b3b5bde4eb9ba5157818d537c86db85f /src/nvim/move.c
parentf8639dc99cb085432b14da086af316176152bc1f (diff)
downloadrneovim-520ec3dbfd208c99f9b184ab0a4baeab9a93b556.tar.gz
rneovim-520ec3dbfd208c99f9b184ab0a4baeab9a93b556.tar.bz2
rneovim-520ec3dbfd208c99f9b184ab0a4baeab9a93b556.zip
UI/TUI: improvements and cleanups for scrolling and clearing
- TUI: _never_ rely on BCE for implicit clearing, only explicit commands. - TUI: use unibi_erase_chars when possible. - TUI: use end-exclusive ranges for invalid and cleared areas - screen: scrolling leaves scrolled in aree undefined. This is a conservative change, a client assuming the old semantics will still behave correctly. - screen: factor out vsep handling from line drawing. This is needed anyway for the multigrid refactor. - screen: simplifications of win_do_lines
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r--src/nvim/move.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c
index bddcefc8ec..3a29851ee6 100644
--- a/src/nvim/move.c
+++ b/src/nvim/move.c
@@ -918,9 +918,9 @@ void curs_columns(
extra = ((int)prev_skipcol - (int)curwin->w_skipcol) / width;
if (extra > 0) {
- win_ins_lines(curwin, 0, extra, false);
+ win_ins_lines(curwin, 0, extra);
} else if (extra < 0) {
- win_del_lines(curwin, 0, -extra, false);
+ win_del_lines(curwin, 0, -extra);
}
} else {
curwin->w_skipcol = 0;