Commit 7f26c738 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in display_string(), if column is less than start_col and the

character's a tab, which can be possible if there are enough tabs and
the terminal size is sufficiently large, don't try to display it using
control_mbrep()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3014 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 1c367b69
Showing with 6 additions and 2 deletions
+6 -2
......@@ -318,6 +318,10 @@ CVS code -
display_string()
- Instead of using parse_mbchar()'s bad_chr parameter, use
mbrep() to get the representation of a bad character. (DLR)
- If column is less than start_col and the character's a tab,
which can be possible if there are enough tabs and the
terminal size is sufficiently large, don't try to display it
using control_mbrep(). (DLR, found by Duncan G. Doyle)
edit_redraw(), edit_refresh()
- Clean up and simplify. (DLR)
edit_update()
......
......@@ -2335,8 +2335,8 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool
converted = charalloc(alloc_len + 1);
index = 0;
if (column < start_col || (dollars && column > 0 &&
buf[start_index] != '\t')) {
if (buf[start_index] != '\t' && (column < start_col || (dollars &&
column > 0))) {
/* We don't display all of buf[start_index] since it starts to
* the left of the screen. */
buf_mb_len = parse_mbchar(buf + start_index, buf_mb, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment