mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 03:28:33 +00:00
Merge pull request #17095 from zeertzjq/vim-8.2.3227
vim-patch:8.2.{3227,3280,4094}: global-local 'virtualedit'
This commit is contained in:
@@ -6048,7 +6048,7 @@ static void n_start_visual_mode(int c)
|
||||
// Corner case: the 0 position in a tab may change when going into
|
||||
// virtualedit. Recalculate curwin->w_cursor to avoid bad highlighting.
|
||||
//
|
||||
if (c == Ctrl_V && (ve_flags & VE_BLOCK) && gchar_cursor() == TAB) {
|
||||
if (c == Ctrl_V && (get_ve_flags() & VE_BLOCK) && gchar_cursor() == TAB) {
|
||||
validate_virtcol();
|
||||
coladvance(curwin->w_virtcol);
|
||||
}
|
||||
@@ -6953,7 +6953,7 @@ static void adjust_cursor(oparg_T *oap)
|
||||
if (curwin->w_cursor.col > 0 && gchar_cursor() == NUL
|
||||
&& (!VIsual_active || *p_sel == 'o')
|
||||
&& !virtual_active()
|
||||
&& (ve_flags & VE_ONEMORE) == 0) {
|
||||
&& (get_ve_flags() & VE_ONEMORE) == 0) {
|
||||
curwin->w_cursor.col--;
|
||||
// prevent cursor from moving on the trail byte
|
||||
mb_adjust_cursor();
|
||||
@@ -7159,7 +7159,7 @@ static void nv_esc(cmdarg_T *cap)
|
||||
void set_cursor_for_append_to_line(void)
|
||||
{
|
||||
curwin->w_set_curswant = true;
|
||||
if (ve_flags == VE_ALL) {
|
||||
if (get_ve_flags() == VE_ALL) {
|
||||
const int save_State = State;
|
||||
|
||||
// Pretend Insert mode here to allow the cursor on the
|
||||
|
Reference in New Issue
Block a user