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.
1 file changed
tree: f1c5b6ef5cc4ca190e55eaab8e24814e83459cf8
  1. .gitignore
  2. Makefile
  3. README.markdown
  4. example.c
  5. linenoise.c
  6. linenoise.h