mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
vim-patch:9.0.1561: display wrong when moving cursor to above the top line (#23644)
Problem: Display wrong when moving cursor to above the top line and
'smoothscroll' is set.
Solution: Call adjust_skipcol() in more places and make it work better.
(Luuk van Baal, closes vim/vim#12395)
798fa76dbf
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "nvim/mbyte.h"
|
||||
#include "nvim/memline.h"
|
||||
#include "nvim/memory.h"
|
||||
#include "nvim/move.h"
|
||||
#include "nvim/normal.h"
|
||||
#include "nvim/option_defs.h"
|
||||
#include "nvim/pos.h"
|
||||
@@ -414,6 +415,7 @@ int bck_word(long count, bool bigword, bool stop)
|
||||
finished:
|
||||
stop = false;
|
||||
}
|
||||
adjust_skipcol();
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -518,6 +520,7 @@ int bckend_word(long count, bool bigword, bool eol)
|
||||
}
|
||||
}
|
||||
}
|
||||
adjust_skipcol();
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user