comparison src/ex_getln.c @ 2302:488be8cbe19c vim73

Make CTRL-L in command line mode respect 'ignorecase' and 'smartcase'. (Martin Toft)
author Bram Moolenaar <bram@vim.org>
date Sun, 11 Jul 2010 20:46:53 +0200
parents aafed4a4866f
children ccda151dde4e
comparison
equal deleted inserted replaced
2301:6f63294a1781 2302:488be8cbe19c
1409 /* Add a character from under the cursor for 'incsearch' */ 1409 /* Add a character from under the cursor for 'incsearch' */
1410 if (did_incsearch 1410 if (did_incsearch
1411 && !equalpos(curwin->w_cursor, old_cursor)) 1411 && !equalpos(curwin->w_cursor, old_cursor))
1412 { 1412 {
1413 c = gchar_cursor(); 1413 c = gchar_cursor();
1414 /* If 'ignorecase' and 'smartcase' are set and the
1415 * command line has no uppercase characters, convert
1416 * the character to lowercase */
1417 if (p_ic && p_scs && !pat_has_uppercase(ccline.cmdbuff))
1418 c = MB_TOLOWER(c);
1414 if (c != NUL) 1419 if (c != NUL)
1415 { 1420 {
1416 if (c == firstc || vim_strchr((char_u *)( 1421 if (c == firstc || vim_strchr((char_u *)(
1417 p_magic ? "\\^$.*[" : "\\^$"), c) 1422 p_magic ? "\\^$.*[" : "\\^$"), c)
1418 != NULL) 1423 != NULL)