about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-02-20 18:28:30 +0100
committerbptato <nincsnevem662@gmail.com>2025-02-20 18:28:30 +0100
commitcecd352906cc2a0a710aec81c0f3f82829032e74 (patch)
tree2b4014e8c5e76941af07111ac32861996553ba45 /src/local
parent84b4b3090607bdc789fd72b799a249683a6f4905 (diff)
downloadchawan-cecd352906cc2a0a710aec81c0f3f82829032e74.tar.gz
select: do not reverse video on cursor
it looks ugly
Diffstat (limited to 'src/local')
-rw-r--r--src/local/select.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/local/select.nim b/src/local/select.nim
index fcb48dcb..0480c8d2 100644
--- a/src/local/select.nim
+++ b/src/local/select.nim
@@ -323,6 +323,9 @@ proc drawSelect*(select: Select; display: var FixedGrid) =
         for l in pj ..< j:
           display[dls + x].str &= select.options[i].s[l]
       display[dls + x].format = format
+      if x == sx:
+        # do not reverse the position of the cursor
+        display[dls + x].format.flags.excl(ffReverse)
       inc x
       while x < nx:
         display[dls + x].str = ""