From: David Lawrence Ramsey Date: Fri, 24 Dec 2004 17:52:17 +0000 (+0000) Subject: fix display problem caused by backwards comparisons of column and X-Git-Tag: v1.3.6~203 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fe3627ddfd04341e076cbb4db35739393878b1a8;p=nano.git 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 --- diff --git a/src/winio.c b/src/winio.c index 05932d4c..3806e032 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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;