mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-06 03:05:01 +03:00
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.
This commit is contained in:
1 parent
507f727768
commit
2291610f72
2 files changed
+2
-1
No files matched your search
@@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Mouse cursor staying hidden after window regains focus on macOS Ventura
|
||||
- Blurry fonts when changing padding size at runtime
|
||||
- Crash while typing on Wayland
|
||||
- Multi-line semantic bracket selection
|
||||
|
||||
## 0.11.0
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user