diff options
author | d10n <david@bitinvert.com> | 2013-11-17 07:56:47 -0500 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-11-26 00:51:02 -0800 |
commit | ded64758d5972aca8c599278cd13d98b4b02906e (patch) | |
tree | 72e08c47028607f8176f7d988ebf093ecc9e0f9d /screen.cpp | |
parent | 2813dcc6cc756f20548b4cfadfa2facd6c126f22 (diff) |
Fix wide character wrapping.
The intention of the block removed appears to be to indent wrapped lines to the column the line started at. What actually happens is that all wrapped lines wrap to column 0.
After adding the sticky short prompt feature, the block removed caused a bug with wrapping wide characters in addition to not appearing to change anything else.
Wide characters would change between wrapping to column 0 and the column the command started at, depending on what column the wide character was at before wrapping.
I am keeping the existing behavior rather than restoring the block's original intention. If the original intention should be restored, it should be on a different branch.
Diffstat (limited to 'screen.cpp')
-rw-r--r-- | screen.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -537,10 +537,6 @@ static void s_desired_append_char(screen_t *s, s->desired.add_line(); s->desired.cursor.y++; s->desired.cursor.x=0; - for (size_t i=0; i < prompt_width; i++) - { - s_desired_append_char(s, L' ', 0, indent, prompt_width); - } } line_t &line = s->desired.line(line_no); |