diff 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
line wrap: on
line diff
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -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 *)(