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
This commit is contained in:
David Lawrence Ramsey 2004-12-24 17:52:17 +00:00
parent 61a71403f4
commit fe3627ddfd
1 changed files with 2 additions and 2 deletions

View File

@ -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;