summaryrefslogtreecommitdiff
path: root/Cargo.lock
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-07-17 21:12:11 +0000
committerGitHub <noreply@github.com>2020-07-17 21:12:11 +0000
commit411318e6a5aaa72a9e35f489121546d84da093a2 (patch)
tree1cffe8df6374950a3433d2fc03bc78a79ff047ee /Cargo.lock
parent82d2cb0be60580212157fa1c002cdad944c5c662 (diff)
downloadalacritty-411318e6a5aaa72a9e35f489121546d84da093a2.tar.gz
alacritty-411318e6a5aaa72a9e35f489121546d84da093a2.zip
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.
Diffstat (limited to 'Cargo.lock')
0 files changed, 0 insertions, 0 deletions