Commit Graph
12 Commits
Author SHA1 Message Date
Roman Perepelitsa 6c1fd3015f Fix a minor bug in zsh integration
This bug is extremely unlikely to cause issues.
2022-01-09 10:45:47 +01:00
Roman Perepelitsa 4f06ce9d72 Once again start embedding marks in PS2 on zsh 2022-01-05 16:36:00 +01:00
Roman Perepelitsa 9194d1db6b Disable aliases when patching functions in zsh integration 2022-01-05 16:16:18 +01:00
Roman Perepelitsa 8009b85073 Make writing to the TTY more robust in zsh integration
See https://github.com/kovidgoyal/kitty/issues/4440.
2022-01-05 09:55:19 +01:00
Roman Perepelitsa 4decac26f6 Fix a typo in _ksi_debug_print 2022-01-05 09:22:00 +01:00
Roman Perepelitsa a6b74f190f Revert "Get _ksi_debug_print working again"
This reverts commit ff63e58f95.
2022-01-05 09:20:33 +01:00
Roman Perepelitsa ca8975891b Replace add-zle-hook-widget with a series of hacks in zsh integration 2022-01-04 19:56:57 +01:00
Roman Perepelitsa 9bba38bd11 Unfunction kitty-integration in zsh 2021-12-23 19:09:09 +01:00
Roman Perepelitsa 37741ac808 Add a comment within zsh integration related to cursor shape changes 2021-12-22 15:04:31 +01:00
Roman Perepelitsa 6d790237c3 Rewrite zsh integration
Note:

- Very lightly tested.
- Docs not updated.
2021-12-22 14:04:40 +01:00
Roman Perepelitsa 09d025d88f Minor robustness improvements to zsh shell integration 2021-12-20 13:20:38 +01:00
Roman Perepelitsa 620eaf1ada Change the flow of lines from the scroll region to the scrollback
There are two user-visible changes in here:

1. If a scroll region is set such that there is a bottom margin and no
   top margin, scrolling the region forward used to discard the top
   lines. Now those lines are appended to the scrollback.
   ```shell
   # Assuming a terminal window with 24 lines.
   printf '\033[H\033[J\033[3J\033[0;5r' && seq 100
   ```
   This command used to result in an empty scrollback. Now it contains
   the numbers 1-96.
2. If a scroll region is set such that there is a top margin and no bottom
   margin, scrolling the region forward used to append the top lines to
   the scrollback. Now these lines are discarded.
   ```shell
   # Assuming a terminal window with 24 lines.
   printf '\033[H\033[J\033[3J\033[2;24r' && seq 100
   ```
   This command used to populate scrollback with the numbers 2-78. Now
   the scrollback is empty. The numbers on the screen are the same as
   before: 1 and 79-100.

Related issue: #3113.
2020-11-20 15:41:57 +01:00