mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-04 17:22:25 +02:00
commit bash-20080124 snapshot
This commit is contained in:
@@ -599,7 +599,7 @@ fnwidth (string)
|
||||
width = pos = 0;
|
||||
while (string[pos])
|
||||
{
|
||||
if (CTRL_CHAR (*string) || *string == RUBOUT)
|
||||
if (CTRL_CHAR (string[pos]) || string[pos] == RUBOUT)
|
||||
{
|
||||
width += 2;
|
||||
pos++;
|
||||
|
||||
@@ -416,6 +416,7 @@ set_completion_defaults (what_to_do)
|
||||
rl_filename_quoting_desired = 1;
|
||||
rl_completion_type = what_to_do;
|
||||
rl_completion_suppress_append = rl_completion_suppress_quote = 0;
|
||||
rl_completion_append_character = ' ';
|
||||
|
||||
/* The completion entry function may optionally change this. */
|
||||
rl_completion_mark_symlink_dirs = _rl_complete_mark_symlink_dirs;
|
||||
@@ -438,7 +439,7 @@ get_y_or_n (for_pager)
|
||||
return (1);
|
||||
if (c == 'n' || c == 'N' || c == RUBOUT)
|
||||
return (0);
|
||||
if (c == ABORT_CHAR)
|
||||
if (c == ABORT_CHAR || c < 0)
|
||||
_rl_abort_internal ();
|
||||
if (for_pager && (c == NEWLINE || c == RETURN))
|
||||
return (2);
|
||||
|
||||
Reference in New Issue
Block a user