commit fe3627ddfd04341e076cbb4db35739393878b1a8
parent 61a71403f4754051208dbf012edfce8e2ee78cea
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 24 Dec 2004 17:52:17 +0000
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
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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;