From 749672f98b1cb56b87617b97b51baa551450d41e Mon Sep 17 00:00:00 2001 From: Saul Pwanson Date: Fri, 11 Oct 2024 15:22:09 -0700 Subject: [PATCH] [input-] fix ^V and ^N errors #2556 --- visidata/_input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/visidata/_input.py b/visidata/_input.py index b64a20f95..7c56ff060 100644 --- a/visidata/_input.py +++ b/visidata/_input.py @@ -188,7 +188,7 @@ def editline(self, scr, y, x, w, attr=ColorAttr(), updater=lambda val: None, bin if ch in bindings: self.value, self.current_i = bindings[ch](self.value, self.current_i) else: - if self.handle_key(ch): + if self.handle_key(ch, scr): return self.value @@ -221,7 +221,7 @@ def draw(self, scr, y, x, w, attr=ColorAttr(), clear=True): if scr: scr.move(y, x+prew) - def handle_key(self, ch:str) -> bool: + def handle_key(self, ch:str, scr) -> bool: 'Return True to accept current input. Raise EscapeException on Ctrl+C, Ctrl+Q, or ESC.' i = self.current_i v = self.value