mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
Make CTRL-L in command line mode respect 'ignorecase' and 'smartcase'. (Martin
Toft)
This commit is contained in:
@@ -1411,6 +1411,11 @@ getcmdline(firstc, count, indent)
|
||||
&& !equalpos(curwin->w_cursor, old_cursor))
|
||||
{
|
||||
c = gchar_cursor();
|
||||
/* If 'ignorecase' and 'smartcase' are set and the
|
||||
* command line has no uppercase characters, convert
|
||||
* the character to lowercase */
|
||||
if (p_ic && p_scs && !pat_has_uppercase(ccline.cmdbuff))
|
||||
c = MB_TOLOWER(c);
|
||||
if (c != NUL)
|
||||
{
|
||||
if (c == firstc || vim_strchr((char_u *)(
|
||||
|
Reference in New Issue
Block a user