aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2022-12-14 17:21:25 +0000
committerGitHub <noreply@github.com>2022-12-14 20:21:25 +0300
commit2291610f72d5fabbdd60ca080cc305301f0306f9 (patch)
treebe6528d58a9772dccfa932c597b7e28b823e9f0f /alacritty_terminal
parent507f727768079addd7546a9ef67aa28a3f05ad62 (diff)
downloadalacritty-2291610f72d5fabbdd60ca080cc305301f0306f9.tar.gz
alacritty-2291610f72d5fabbdd60ca080cc305301f0306f9.zip
Fix multi-line bracket selection
This fixes a bug where semantic selection for bracket characters wasn't working properly over multiple lines since start and end of the selection were swapped. Closes #6567.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/src/selection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/selection.rs b/alacritty_terminal/src/selection.rs
index 97a80ec3..542430d3 100644
--- a/alacritty_terminal/src/selection.rs
+++ b/alacritty_terminal/src/selection.rs
@@ -298,7 +298,7 @@ impl Selection {
if start == end {
if let Some(matching) = term.bracket_search(start) {
if (matching.line == start.line && matching.column < start.column)
- || (matching.line > start.line)
+ || (matching.line < start.line)
{
start = matching;
} else {