From 53ba05b09075f14227f9be831a22ed16f7cc26b2 Mon Sep 17 00:00:00 2001 From: Gary Johnson Date: Mon, 26 Jul 2021 22:19:10 +0200 Subject: patch 8.2.3227: 'virtualedit' can only be set globally Problem: 'virtualedit' can only be set globally. Solution: Make 'virtualedit' global-local. (Gary Johnson, closes #8638) --- src/change.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/change.c') diff --git a/src/change.c b/src/change.c index ee1bd6fca8..f77b48c742 100644 --- a/src/change.c +++ b/src/change.c @@ -1257,7 +1257,7 @@ del_bytes( // fixpos is TRUE, we don't want to end up positioned at the NUL, // unless "restart_edit" is set or 'virtualedit' contains "onemore". if (col > 0 && fixpos && restart_edit == 0 - && (ve_flags & VE_ONEMORE) == 0) + && (get_ve_flags() & VE_ONEMORE) == 0) { --curwin->w_cursor.col; curwin->w_cursor.coladd = 0; -- cgit v1.2.3