Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 116120 Details for
Bug 156292
coloured prompt confuses Ctrl+R in app-shells/bash-3.2_p5
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bash-3.2-display-prompt-invis-delete.patch
bash-3.2-display-prompt-invis-delete.patch (text/plain), 1.64 KB, created by
Peter Volkov (RETIRED)
on 2007-04-13 05:51:10 UTC
(
hide
)
Description:
bash-3.2-display-prompt-invis-delete.patch
Filename:
MIME Type:
Creator:
Peter Volkov (RETIRED)
Created:
2007-04-13 05:51:10 UTC
Size:
1.64 KB
patch
obsolete
>--- lib/readline/display.c.orig 2007-04-11 11:26:08.000000000 +0200 >+++ lib/readline/display.c 2007-04-11 11:54:09.000000000 +0200 >@@ -1598,8 +1598,22 @@ > temp = nls - nfd; > if (temp > 0) > { >+ /* If nfd begins at the prompt, or before the invisible >+ characters in the prompt, we need to adjust _rl_last_c_pos >+ in a multibyte locale to account for the wrap offset and >+ set cpos_adjusted accordingly. */ > _rl_output_some_chars (nfd, temp); >- _rl_last_c_pos += _rl_col_width (nfd, 0, temp);; >+ if (MB_CUR_MAX > 1 && rl_byte_oriented == 0) >+ { >+ _rl_last_c_pos += _rl_col_width (nfd, 0, temp); >+ if (current_line == 0 && wrap_offset && ((nfd - new) <= prompt_last_invisible)) >+ { >+ _rl_last_c_pos -= wrap_offset; >+ cpos_adjusted = 1; >+ } >+ } >+ else >+ _rl_last_c_pos += temp; > } > } > /* Otherwise, print over the existing material. */ >@@ -1607,8 +1621,20 @@ > { > if (temp > 0) > { >+ /* If nfd begins at the prompt, or before the invisible >+ characters in the prompt, we need to adjust _rl_last_c_pos >+ in a multibyte locale to account for the wrap offset and >+ set cpos_adjusted accordingly. */ > _rl_output_some_chars (nfd, temp); > _rl_last_c_pos += col_temp; /* XXX */ >+ if (MB_CUR_MAX > 1 && rl_byte_oriented == 0) >+ { >+ if (current_line == 0 && wrap_offset && ((nfd - new) <= prompt_last_invisible)) >+ { >+ _rl_last_c_pos -= wrap_offset; >+ cpos_adjusted = 1; >+ } >+ } > } > lendiff = (oe - old) - (ne - new); > if (MB_CUR_MAX > 1 && rl_byte_oriented == 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 156292
: 116120