From 88ca0bf25d072e73f31c0441b0ba05f403898b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Thu, 23 Apr 2020 11:48:24 -0300 Subject: Fix point movement bug --- test/point.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') 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]); } -- cgit v1.2.3