alacritty/alacritty
Christian Duerr 411318e6a5
Fix crashes during search
This fixes two crashes related to search. The first crash was due to
variable shadowing computing the incorrect length of a search as soon as
it was started, causing an overflow after attempting a subtraction.
Since overflows are only debug mode checks, in release this would lead
to an IME positioned far, far beyond the window's boundaries (likely
offscreen).

The other bug was that the search was always started from the last
column in reverse search without vi mode, but after shrinking the
terminal width that origin point is no longer a valid part of the grid.
As a result it would cause an index out of bounds. The line was already
clamped to the grid, but now the same is also done for the column.

Fixes #3987.
2020-07-17 21:12:11 +00:00
..
src Fix crashes during search 2020-07-17 21:12:11 +00:00
Cargo.toml Remove gui dependencies from alacritty_terminal 2020-07-11 20:03:09 +03:00
build.rs Use compile_error! instead of panic! in build.rs 2020-06-15 23:01:21 +03:00