Make history search smartcase

This makes history searches case-insensitive, unless the search string
contains an uppercase character.

This is what vim calls "smartcase".

Fixes #7273.
This commit is contained in:
Fabian Homborg
2020-09-22 16:11:39 +02:00
parent 0a0149cc2a
commit 1da56f9937
4 changed files with 18 additions and 3 deletions

View File

@@ -1718,7 +1718,7 @@ After a command has been executed, it is remembered in the history list. Any dup
By pressing :kbd:`Alt`\ +\ :kbd:`↑` and :kbd:`Alt`\ +\ :kbd:`↓`, a history search is also performed, but instead of searching for a complete commandline, each commandline is broken into separate elements just like it would be before execution, and the history is searched for an element matching that under the cursor.
History searches can be aborted by pressing the escape key.
History searches are case-insensitive unless the search string contains an uppercase character, and they can be aborted by pressing the escape key.
Prefixing the commandline with a space will prevent the entire line from being stored in the history.