diff options
author | KatolaZ <[email protected]> | 2018-04-20 10:49:23 +0100 |
---|---|---|
committer | KatolaZ <[email protected]> | 2018-04-20 10:49:23 +0100 |
commit | 99c9a9e20f80f5d04dfddaf19e18d1179c65c91e (patch) | |
tree | 60e685564a2bde6958de342a1ff36fe8b120c4a1 | |
parent | cae118e406151da7dc1008045b9908ced76526d9 (diff) |
Fixed positioning on 'p' and 'n'
-rw-r--r-- | buff.c | 4 | ||||
-rw-r--r-- | main.c | 2 |
2 files changed, 2 insertions, 4 deletions
@@ -73,10 +73,6 @@ void print_lines(char lineno){ if (lineno) printf("%d\t", pos); printf("%s", cur->c); - if (pos != num) { - pos += 1; - cur = cur -> next; - } } int move_to_line(int addr, char print){ @@ -74,6 +74,8 @@ int get_addr(const char **cmd){ check: *cmd = c; + fprintf(stderr, " >>> get_addr: addr1: %d addr2: %d\n", addr1, addr2); + if (addr1 == -1){ if (comma){ addr1 = num; |