Commit 156a714
committed
Remove dead scroll commands and add C-c C-l to copy mode
Since scrollback is materialized directly into the Emacs buffer,
the Zig viewport-scroll functions ghostel--scroll and
ghostel--scroll-top are never called. Remove them along with the
redundant ghostel-copy-mode-scroll-up/down wrappers (M-v/C-v
inherit scroll-down/up-command from the global keymap).
Keep ghostel--scroll-bottom for scroll-on-input — it's a cheap
no-op when the viewport is already at the bottom.
Also bind C-c C-l in copy mode to exit and clear scrollback,
matching the terminal-mode binding.1 parent 2d3bda7 commit 156a714
3 files changed
Lines changed: 22 additions & 68 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | 400 | | |
402 | | - | |
403 | 401 | | |
404 | 402 | | |
405 | 403 | | |
| |||
1129 | 1127 | | |
1130 | 1128 | | |
1131 | 1129 | | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | 1130 | | |
1142 | 1131 | | |
1143 | 1132 | | |
| |||
1256 | 1245 | | |
1257 | 1246 | | |
1258 | 1247 | | |
1259 | | - | |
1260 | | - | |
1261 | 1248 | | |
1262 | 1249 | | |
1263 | 1250 | | |
1264 | 1251 | | |
1265 | 1252 | | |
1266 | 1253 | | |
| 1254 | + | |
1267 | 1255 | | |
1268 | 1256 | | |
1269 | 1257 | | |
| |||
1323 | 1311 | | |
1324 | 1312 | | |
1325 | 1313 | | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
1326 | 1320 | | |
1327 | 1321 | | |
1328 | 1322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
536 | 534 | | |
537 | 535 | | |
538 | 536 | | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | 537 | | |
559 | 538 | | |
560 | 539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 178 | | |
194 | 179 | | |
195 | 180 | | |
| |||
427 | 412 | | |
428 | 413 | | |
429 | 414 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
449 | 430 | | |
450 | 431 | | |
451 | 432 | | |
| |||
0 commit comments