commit | c84d0a02ce46439f501580bc5c42cf0fc61381dd | [log] [tgz] |
---|---|---|
author | antirez <antirez@gmail.com> | Wed Sep 03 10:11:31 2014 +0200 |
committer | antirez <antirez@gmail.com> | Wed Sep 03 10:11:31 2014 +0200 |
tree | f1c5b6ef5cc4ca190e55eaab8e24814e83459cf8 | |
parent | 471e75460155d7b434044b7706bb8ac6fac46102 [diff] |
Don't emit ESC [ n C with n=0. This fixes a bug introduced with ANSI.SYS compatibility. When we want to move at a specific column, we need to emit the sequence to move the cursor to the right (after we moved 999 positions to the left) only if we want to actually move right at least 1 position, since a count of zero will still move the cursor one position to the right.