Select boundary dollar (#2938)

Proposed fix for #2933
This commit is contained in:
Mitchell Hashimoto
2024-12-12 16:30:19 -08:00
committed by GitHub

View File

@ -2428,6 +2428,7 @@ pub fn selectWord(self: *Screen, pin: Pin) ?Selection {
'}',
'<',
'>',
'$',
};
// If our cell is empty we can't select a word, because we can't select
@ -7318,6 +7319,7 @@ test "Screen: selectWord with character boundary" {
" }abc} \n123",
" <abc< \n123",
" >abc> \n123",
" $abc$ \n123",
};
for (cases) |case| {