summaryrefslogtreecommitdiff
path: root/client.cpp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-07-15 19:14:40 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-07-15 19:14:40 -0300
commit4d10bce15ce052e364392d94c3a3a0af602b8e25 (patch)
treef82da9c91ea3dcc278d7717a88e2a6467ab40b7d /client.cpp
parent2397212c306c63a5887ff67cc56ffae68d055d2f (diff)
downloadjet-4d10bce15ce052e364392d94c3a3a0af602b8e25.tar.gz
jet-4d10bce15ce052e364392d94c3a3a0af602b8e25.zip
Show cursor and update it when moving
Diffstat (limited to 'client.cpp')
-rw-r--r--client.cpp6
1 files changed, 1 insertions, 5 deletions
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;