about summary refs log tree commit diff stats
path: root/src/local/pager.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-17 22:29:04 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-17 22:29:04 +0100
commit6a0308642d952f56fee549cf908ee5d0bbc5df3e (patch)
tree3f6a2b9642f233fc29b7d8331eea4d224a3816b3 /src/local/pager.nim
parent390772358cedc9ed541a27b3cac1f8d97beef0ef (diff)
downloadchawan-6a0308642d952f56fee549cf908ee5d0bbc5df3e.tar.gz
pager: fix compilation on 1.6.14
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r--src/local/pager.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index d30a0dbc..a5b63523 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -874,7 +874,7 @@ proc updateReadLine*(pager: Pager) =
       of BUFFER: pager.container.readCanceled()
       of COMMAND: pager.commandMode = false
       else: discard
-  if lineedit.state in {CANCEL, FINISH}:
+  if lineedit.state in {LineEditState.CANCEL, LineEditState.FINISH}:
     if pager.lineedit.get == lineedit:
       pager.clearLineEdit()