Repository navigation
Commit 1ae10ff
committed
fix(tui): let keypad Home and End move the prompt cursor
The session prompt binds `input.buffer.home` and `input.buffer.end` to
`none`, so NumPad Home and NumPad End (kitty `CSI 57423 u` / `CSI 57424 u`)
do nothing while the caret is in the prompt. Plain Home and End move the
caret, which makes the keypad keys look broken rather than unbound.
Bind the two commands to `kphome` and `kpend`. These are buffer commands,
not line commands: measured on a two-line prompt, plain Home lands at the
start of the buffer, so the keypad key has to land there too.1 parent e965774 commit 1ae10ff
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
| 226 | + | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
| 170 | + | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
0 commit comments