vim-patch:7.4.688 #4159

Problem:    When "$" is in 'cpo' the popup menu isn't undrawn correctly.
            (Issue 166)
Solution:   When using the popup menu remove the "$".

478c46e50f

NOTE: To reproduce in nvim:
    nvim -u NONE -c 'exe "norm iaaa iabbbbbb acc" | norm yyp' -c 'set cpo+=$'
This commit is contained in:
watiko
2016-02-04 03:01:46 +09:00
committed by Justin M. Keyes
parent 46bd3c0f77
commit 7b955802b3
2 changed files with 7 additions and 3 deletions

View File

@@ -2548,8 +2548,12 @@ void ins_compl_show_pum(void)
}
}
/* Compute the screen column of the start of the completed text.
* Use the cursor to get all wrapping and other settings right. */
// In Replace mode when a $ is displayed at the end of the line only
// part of the screen would be updated. We do need to redraw here.
dollar_vcol = -1;
// Compute the screen column of the start of the completed text.
// Use the cursor to get all wrapping and other settings right.
col = curwin->w_cursor.col;
curwin->w_cursor.col = compl_col;
pum_display(compl_match_array, compl_match_arraysize, cur);