1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-25 20:41:49 +03:00
kakoune/test/regression/3489-crash-on-paragraph-begin
Johannes Altmanninger fc63eef695 Fix crash when selecting previous paragraph at buffer begin
Fixes #3489

When there are multiple empty lines between a paragraph and the cursor
(C in the example below), <a-[>p skips over one of them. Prevent the
check for the extra newline from going out of bounds.

```
a paragraph

C	after <a-[>p, the first two lines will be selected
```
2020-05-17 14:15:48 +02:00
..
cmd Fix crash when selecting previous paragraph at buffer begin 2020-05-17 14:15:48 +02:00
in Fix crash when selecting previous paragraph at buffer begin 2020-05-17 14:15:48 +02:00
kak_selection_desc Fix crash when selecting previous paragraph at buffer begin 2020-05-17 14:15:48 +02:00