v0.8.0: fix cursor position on multi-line input
view-input now stores cursor-line and cursor-col in state after word-wrapping. position-cursor uses these to place the cursor on the correct wrapped line, instead of the hardcoded row (- h 6) which always put the cursor on the first line.
This commit is contained in:
@@ -312,7 +312,8 @@ Adds any missing keys with defaults to handle saved themes from older versions."
|
||||
(list :running t :mode :chat :connected nil :stream nil
|
||||
:input-buffer nil :input-history nil :input-hpos 0
|
||||
:messages (make-array 16 :adjustable t :fill-pointer 0)
|
||||
:scroll-offset 0 :busy nil :cursor-pos 0
|
||||
:scroll-offset 0 :busy nil :cursor-pos 0
|
||||
:cursor-line 0 :cursor-col 0
|
||||
:pending-ctrl-x nil
|
||||
:scroll-at-bottom t :scroll-notify nil
|
||||
:streaming-text nil :url-buffer nil ; v0.7.1
|
||||
|
||||
Reference in New Issue
Block a user