Commit ffdbb59
committed
repl: add block-based history navigation
When --experimental-repl-enhancements is enabled, the Up and Down
arrow keys now navigate between history entries as whole blocks
instead of moving line-by-line within a recalled multiline entry.
Previously, recalling a multiline function from history and pressing
Up would move the cursor within that entry's lines before advancing
to the previous history entry. With this change, Up/Down always jump
directly to the previous/next history entry, matching the behavior
of Ctrl-P/Ctrl-N.
Fixes: #48146
Signed-off-by: hemanth <hemanth.hm@gmail.com>1 parent eec5763 commit ffdbb59
3 files changed
Lines changed: 34 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1390 | 1390 | | |
1391 | 1391 | | |
1392 | 1392 | | |
1393 | | - | |
1394 | | - | |
| 1393 | + | |
| 1394 | + | |
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
501 | 517 | | |
502 | 518 | | |
503 | 519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
967 | 969 | | |
968 | 970 | | |
969 | 971 | | |
970 | | - | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
971 | 986 | | |
972 | 987 | | |
973 | 988 | | |
| |||
0 commit comments