Skip to content

Commit

Permalink
[input-] fix ^V and ^N errors #2556
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Oct 11, 2024
1 parent a24ef18 commit 749672f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visidata/_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 749672f

Please sign in to comment.