Mercurial > vim
comparison src/ex_getln.c @ 31934:929a9427862c v9.0.1299
patch 9.0.1299: change for triggering incsearch not sufficiently tested
Commit: https://github.com/vim/vim/commit/412e0e4ed903682f352d8ea58ded480930cc664f
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat Feb 11 10:34:07 2023 +0000
patch 9.0.1299: change for triggering incsearch not sufficiently tested
Problem: Change for triggering incsearch not sufficiently tested.
Solution: Add a test case. Simplify the code. (closes https://github.com/vim/vim/issues/11971)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Feb 2023 11:45:04 +0100 |
parents | 19648eb383d9 |
children | ca6bc7c04163 |
comparison
equal
deleted
inserted
replaced
31933:82d3cd3c6b40 | 31934:929a9427862c |
---|---|
1251 #endif | 1251 #endif |
1252 | 1252 |
1253 // remove the double quote | 1253 // remove the double quote |
1254 redrawcmd(); | 1254 redrawcmd(); |
1255 | 1255 |
1256 // The text has been stuffed, the command line didn't change yet, but it | 1256 // With "literally": the command line has already changed. |
1257 // will change soon. The caller must take care of it. | 1257 // Else: the text has been stuffed, but the command line didn't change yet. |
1258 return literally ? CMDLINE_NOT_CHANGED : CMDLINE_CHANGED; | 1258 return literally ? CMDLINE_CHANGED : CMDLINE_NOT_CHANGED; |
1259 } | 1259 } |
1260 | 1260 |
1261 /* | 1261 /* |
1262 * Handle the Left and Right mouse clicks in the command-line mode. | 1262 * Handle the Left and Right mouse clicks in the command-line mode. |
1263 */ | 1263 */ |
2084 | 2084 |
2085 case Ctrl_R: // insert register | 2085 case Ctrl_R: // insert register |
2086 res = cmdline_insert_reg(&gotesc); | 2086 res = cmdline_insert_reg(&gotesc); |
2087 if (res == GOTO_NORMAL_MODE) | 2087 if (res == GOTO_NORMAL_MODE) |
2088 goto returncmd; | 2088 goto returncmd; |
2089 #ifdef FEAT_SEARCH_EXTRA | 2089 if (res == CMDLINE_CHANGED) |
2090 if (res == CMDLINE_NOT_CHANGED) | 2090 goto cmdline_changed; |
2091 is_state.incsearch_postponed = TRUE; | |
2092 #endif | |
2093 goto cmdline_not_changed; | 2091 goto cmdline_not_changed; |
2094 | 2092 |
2095 case Ctrl_D: | 2093 case Ctrl_D: |
2096 if (showmatches(&xpc, FALSE) == EXPAND_NOTHING) | 2094 if (showmatches(&xpc, FALSE) == EXPAND_NOTHING) |
2097 break; // Use ^D as normal char instead | 2095 break; // Use ^D as normal char instead |