tui line_edit: Set correct cursor position on end
Previously, the cursor would end up one character after the last typed character when pressing end in the unicode input kitten.
This commit is contained in:
parent
533a739e2b
commit
6a3eb3f3d7
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ def home(self):
|
|||
|
||||
def end(self):
|
||||
orig = self.cursor_pos
|
||||
self.cursor_pos = wcswidth(self.current_input) + 1
|
||||
self.cursor_pos = wcswidth(self.current_input)
|
||||
return self.cursor_pos != orig
|
||||
|
||||
def on_key(self, key_event):
|
||||
|
|
|
|||
Loading…
Reference in a new issue