diff options
Diffstat (limited to 'app-shells/bash/files/bash-3.0-invisible.patch')
-rw-r--r-- | app-shells/bash/files/bash-3.0-invisible.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-3.0-invisible.patch b/app-shells/bash/files/bash-3.0-invisible.patch new file mode 100644 index 000000000000..d45cb91e5aa0 --- /dev/null +++ b/app-shells/bash/files/bash-3.0-invisible.patch @@ -0,0 +1,24 @@ +--- bash-3.0/lib/readline/display.c.agriffis 2004-08-02 09:34:14.000000000 -0400 ++++ bash-3.0/lib/readline/display.c 2004-08-02 10:48:26.256360524 -0400 +@@ -258,15 +258,16 @@ + #endif + { + *r++ = *p; +- if (!ignoring) +- rl++; /* visible length byte counter */ ++ if (!ignoring) ++ { ++ rl++; /* visible length byte counter */ ++ if (rl >= _rl_screenwidth) ++ invfl = ninvis; ++ } + else + ninvis++; /* invisible chars byte counter */ + } + +- if (rl >= _rl_screenwidth) +- invfl = ninvis; +- + if (ignoring == 0) + physchars++; + } |