There were two different overflows that could happen here when
resizing the terminal from a narrow width to a much wider width,
when the input consists of very very long logical lines.
The first was that we could overflow the maximum number of
cells in the ClusteredLine struct, which had u16 as its type.
The second, after changing u16 to u32, was the maximum length
of a run of cells with the same attribute.
The former could be fixed, preserving the smaller integer type,
by adjusting the API to allow it to return the overflow, but
that feels awkward and we could just increase the size of
the integer type.
The latter can be caught with an overflowing_add operation
and breaking the run in the overflow case.
That is what this commit does.
+bump codec version because this causes a small change
in the serialization of line data used by the mux
protocol.
refs: https://github.com/wezterm/wezterm/issues/6729
* feat: add alphabet argument to ShowLauncherArgs
- The labels are now based on the provided argument or the default value
- The 'alphabet' string defaults to "1234567890abcdefghilmnopqrstuvwxyz"
- Optional argument 'alphabet' is added to 'ShowLauncherArgs'
* docs: update documentation for ShowLauncherArgs
* fix: push (max_label_len+3) whitespaces if always_fuzzy false in InputSelector
This is to handle the edge case in InputSelector when max_label_len is 2
and the labels shift one place to the left when entering fuzzy mode and
back one place to the right when exiting fuzzy mode.
* fix: push (max_label_len+3) whitespaces if 'FUZZY' not present
This is to handle the edge case in Launcher when max_label_len is 2
and the labels shift one place to the left when entering fuzzy mode and
back one place to the right when exiting fuzzy mode.
* feat: add configuration option for Launcher alphabet
- This is in order to be able to configure the alphabet for
actions corresponding to KeyAssignment enums 'ShowLauncher',
'ShowTabNavigator'
- If `launcher_alphabet` configuration option not set, the value
defaults to '1234567890abcdefghilmnopqrstuvwxyz'
* docs: add launcher_alphabet documentation
* docs: update documentation for ShowLauncherArgs
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
* feat: add Confirmation to KeyAssignment
This displays a confirmation menu similar to close menu.
An optional cancellation action that is triggered when the user
cancels/declines.
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
On windows, if win32 input mode is active, key presses are encoded by the GUI and will bypass
the key_down logic that we use to detect when the user presses `q` to exit from `tmux -CC` mode.
This commit forces the keyboard encoding to be standard Xterm encoding for the pane
that is running `tmux -CC` mode so that we can catch the `q` press.
* Improve documentation of pane:paste vs pane:send_paste
* docs: remove ambiguity in documentation of pane:paste and
pane:send_paste
Since 20221119-145034-49b9839f, `paste` has been an alias of
`send_paste`, but this was not documented. I went commit-reading to find
this out, so went ahead and fixed the docs to show this.
Signed-off-by: Ross Williams <ross@ross-williams.net>
* Apply suggestions from code review
---------
Signed-off-by: Ross Williams <ross@ross-williams.net>
Co-authored-by: Wez Furlong <wez@wezfurlong.org>