Commit a9b9913c authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

properly increment start_col when the line begins with a character that

takes up two columns


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2204 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 4 additions and 0 deletions
+4 -0
......@@ -1902,6 +1902,8 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool
converted[index++] = ctrl_wide_buf[i];
free(ctrl_wide_buf);
start_col++;
start_index += wide_buf_len;
}
} else if (wcwidth(wide_buf) > 1) {
......@@ -1914,6 +1916,8 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool
converted[1] = ' ';
index = 2;
}
start_col++;
start_index += wide_buf_len;
}
}
......
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