diff options
author | watiko <service@mail.watiko.net> | 2016-02-04 03:01:46 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-05 09:54:03 -0500 |
commit | 7b955802b3c5ca32467b58e09786e40d167fd3aa (patch) | |
tree | b56dc5ffe96af12d1617bfb92befc1ebe09f9b25 /src/nvim/edit.c | |
parent | 46bd3c0f77f282b93ca1307c011562243c394306 (diff) | |
download | rneovim-7b955802b3c5ca32467b58e09786e40d167fd3aa.tar.gz rneovim-7b955802b3c5ca32467b58e09786e40d167fd3aa.tar.bz2 rneovim-7b955802b3c5ca32467b58e09786e40d167fd3aa.zip |
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 "$".
https://github.com/vim/vim/commit/478c46e50fd94f270369ec1c5f76aa65af7ee671
NOTE: To reproduce in nvim:
nvim -u NONE -c 'exe "norm iaaa iabbbbbb acc" | norm yyp' -c 'set cpo+=$'
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index dbbcf4f1b9..213df4f65a 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -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); |