parent
8579e299da
commit
9078039326
|
@ -94,9 +94,8 @@ Selection select_to_previous_word(const Buffer& buffer, const Selection& selecti
|
|||
|
||||
skip_while_reverse(begin, buffer.begin(), [](Codepoint c){ return is_eol(c); });
|
||||
Utf8Iterator end = begin;
|
||||
skip_while_reverse(end, buffer.begin(), is_horizontal_blank);
|
||||
|
||||
bool with_end = false;
|
||||
bool with_end = skip_while_reverse(end, buffer.begin(), is_horizontal_blank);
|
||||
if (word_type == Word and is_punctuation(*end))
|
||||
with_end = skip_while_reverse(end, buffer.begin(), is_punctuation);
|
||||
|
||||
|
|
1
test/regression/844-prev-word-at-buffer-start/cmd
Normal file
1
test/regression/844-prev-word-at-buffer-start/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
bb
|
1
test/regression/844-prev-word-at-buffer-start/in
Normal file
1
test/regression/844-prev-word-at-buffer-start/in
Normal file
|
@ -0,0 +1 @@
|
|||
%(word)
|
1
test/regression/844-prev-word-at-buffer-start/selections
Normal file
1
test/regression/844-prev-word-at-buffer-start/selections
Normal file
|
@ -0,0 +1 @@
|
|||
|
Loading…
Reference in New Issue
Block a user