mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
vim-patch:9.0.0218: reading before the start of the line
Problem: Reading before the start of the line.
Solution: When displaying "$" check the column is not negative.
e98c88c44c
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
a9ea563b44
commit
72b709fff9
@ -1541,8 +1541,9 @@ void edit_unputchar(void)
|
||||
|
||||
// Called when p_dollar is set: display a '$' at the end of the changed text
|
||||
// Only works when cursor is in the line that changes.
|
||||
void display_dollar(colnr_T col)
|
||||
void display_dollar(colnr_T col_arg)
|
||||
{
|
||||
colnr_T col = col_arg < 0 ? 0 : col_arg;
|
||||
colnr_T save_col;
|
||||
|
||||
if (!redrawing()) {
|
||||
|
@ -13,5 +13,13 @@ func Test_cant_open_cmdwin_in_cmdwin()
|
||||
call assert_match('E1292:', caught)
|
||||
endfunc
|
||||
|
||||
func Test_cmdwin_virtual_edit()
|
||||
enew!
|
||||
set ve=all cpo+=$
|
||||
silent normal q/s
|
||||
|
||||
set ve= cpo-=$
|
||||
endfunc
|
||||
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Loading…
Reference in New Issue
Block a user