From 4d10bce15ce052e364392d94c3a3a0af602b8e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Wed, 15 Jul 2020 19:14:40 -0300 Subject: Show cursor and update it when moving --- client.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'client.cpp') diff --git a/client.cpp b/client.cpp index 80d784c..bed62c5 100644 --- a/client.cpp +++ b/client.cpp @@ -52,11 +52,7 @@ struct Client { Point window_end(window_start); for (int i = 0; i < window_h; i++) { for (int j = 0; j < window_w; j++) { - if (window_end == cursor) { - view[pos(j, i)] = '$'; - } else { - view[pos(j, i)] = window_end.element(); - } + view[pos(j, i)] = window_end.element(); if (window_end.element() == '\n') { for (int k = j + 1; k < window_w; k++) { view[pos(k, i)] = 0; -- cgit v1.2.3