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

fix display problem caused by backwards comparisons of column and

start_col


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2199 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -1843,7 +1843,7 @@ 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 &&
if (column < start_col || (dollars && column > 0 &&
buf[start_index] != '\t')) {
int wide_buf, wide_buf_len;
......@@ -1856,7 +1856,7 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool
);
if (is_cntrl_char(wide_buf)) {
if (column > start_col) {
if (column < start_col) {
char *ctrl_wide_buf = charalloc(MB_CUR_MAX);
int ctrl_wide_buf_len, i;
......
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