mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 23:53:18 +02:00
commit bash-20151218 snapshot
This commit is contained in:
+11
-1
@@ -560,8 +560,12 @@ add_character:
|
||||
if (wstart >= 0)
|
||||
cxt->search_string[cxt->search_string_index = wstart] = '\0';
|
||||
else
|
||||
rl_ding ();
|
||||
cxt->search_string[cxt->search_string_index = 0] = '\0';
|
||||
}
|
||||
|
||||
if (cxt->search_string_index == 0)
|
||||
rl_ding ();
|
||||
|
||||
break;
|
||||
|
||||
case -4: /* C-G, abort */
|
||||
@@ -654,6 +658,12 @@ add_character:
|
||||
|
||||
for (cxt->sflags &= ~(SF_FOUND|SF_FAILED);; )
|
||||
{
|
||||
if (cxt->search_string_index == 0)
|
||||
{
|
||||
cxt->sflags |= SF_FAILED;
|
||||
break;
|
||||
}
|
||||
|
||||
limit = cxt->sline_len - cxt->search_string_index + 1;
|
||||
|
||||
/* Search the current line. */
|
||||
|
||||
Reference in New Issue
Block a user