diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-23 07:47:55 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-05-23 07:47:55 +0200 |
commit | 701ad50a9efcf0adfe6d787b606c4e4dbd31f26d (patch) | |
tree | a9f93efb26cf90fe4ea9cbb79d1059d07bd345b2 /src/proto/normal.pro | |
parent | f2d74e3b63e8ba4ed620ae41119929b327c7cfbf (diff) |
patch 9.1.0433: Wrong yanking with exclusive selection and ve=allv9.1.0433
Problem: Wrong yanking with exclusive selection and virtualedit=all,
and integer overflow when using getregion() on it.
Solution: Set coladd when decreasing column and 'virtualedit' is active.
Add more tests for getregion() with 'virtualedit' (zeertzjq).
closes: #14830
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/proto/normal.pro')
-rw-r--r-- | src/proto/normal.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/normal.pro b/src/proto/normal.pro index 6dcbe414fc..36a26ec480 100644 --- a/src/proto/normal.pro +++ b/src/proto/normal.pro @@ -31,5 +31,6 @@ int get_visual_text(cmdarg_T *cap, char_u **pp, int *lenp); void start_selection(void); void may_start_select(int c); int unadjust_for_sel(void); +int unadjust_for_sel_inner(pos_T *pp); void set_cursor_for_append_to_line(void); /* vim: set ft=c : */ |