mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-11 20:50:42 +02:00
commit bash-20191127 snapshot
This commit is contained in:
@@ -185,11 +185,13 @@ rl_display_search (char *search_string, int flags, int where)
|
||||
strcpy (message + msglen, "i-search)`");
|
||||
msglen += 10;
|
||||
|
||||
if (search_string)
|
||||
if (search_string && *search_string)
|
||||
{
|
||||
strcpy (message + msglen, search_string);
|
||||
msglen += searchlen;
|
||||
}
|
||||
else
|
||||
_rl_optimize_redisplay ();
|
||||
|
||||
strcpy (message + msglen, "': ");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user