Problem: CmdlineChange event triggered twice for CTRL-R.
Solution: Return CMDLINE_NOT_CHANGED from cmdline_insert_reg().
(closes #8219)
}
#endif
}
+ // remove the double quote
redrawcmd();
- return CMDLINE_CHANGED;
+
+ // The text has been stuffed, the command line didn't change yet.
+ return CMDLINE_NOT_CHANGED;
}
/*
call feedkeys(":\<F1>\<CR>", 'xt')
call assert_equal(['l', 'ls'], g:log)
+ let @b = 'b'
+ cnoremap <F1> a<C-R>b
+ let g:log = []
+ call feedkeys(":\<F1>\<CR>", 'xt')
+ call assert_equal(['a', 'ab'], g:log)
+
unlet g:log
cunmap <F1>
augroup test
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2870,
/**/
2869,
/**/