mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
vim-patch:9.0.0143: cursor positioned after virtual text in empty line
Problem: Cursor positioned after virtual text in empty line.
Solution: Keep cursor in the first column. (closes vim/vim#10786)
afd2aa79ed
This commit is contained in:
@@ -390,7 +390,7 @@ int win_lbr_chartabsize(chartabsize_T *cts, int *headp)
|
||||
|
||||
// First get normal size, without 'linebreak' or virtual text
|
||||
int size = win_chartabsize(wp, s, vcol);
|
||||
if (cts->cts_has_virt_text) {
|
||||
if (cts->cts_has_virt_text && *line != NUL) {
|
||||
int col = (int)(s - line);
|
||||
while (true) {
|
||||
mtkey_t mark = marktree_itr_current(cts->cts_iter);
|
||||
|
Reference in New Issue
Block a user