diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-04-23 11:48:24 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-04-23 11:48:24 -0300 |
commit | 88ca0bf25d072e73f31c0441b0ba05f403898b37 (patch) | |
tree | ce22f5592847cc6dc212dbb3fa98a82e66c24a60 /test | |
parent | 388f43addc4a94681f27853defe9f46ec1b9ee63 (diff) | |
download | jet-88ca0bf25d072e73f31c0441b0ba05f403898b37.tar.gz jet-88ca0bf25d072e73f31c0441b0ba05f403898b37.zip |
Fix point movement bug
Diffstat (limited to 'test')
-rw-r--r-- | test/point.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/point.c b/test/point.c index 9c4abc9..252726c 100644 --- a/test/point.c +++ b/test/point.c @@ -21,7 +21,11 @@ int main() { struct page *iter = page; while (iter) { - addch('|'); + if (iter == point.page) { + addch('#'); + } else { + addch('|'); + } for (int i = 0; i < iter->gap_start; i++) { addch(iter->elements[i]); } |