+707
-3
lines changedFilter options
+707
-3
lines changed Original file line number Diff line number Diff line change
@@ -108,6 +108,7 @@ static int coladvance2(pos_T *pos, bool addspaces, bool finetune, colnr_T wcol_a
108
108
int head = 0;
109
109
110
110
one_more = (State & INSERT)
111
+
|| (State & TERM_FOCUS)
111
112
|| restart_edit != NUL
112
113
|| (VIsual_active && *p_sel != 'o')
113
114
|| ((ve_flags & VE_ONEMORE) && wcol < MAXCOL);
Original file line number Diff line number Diff line change
@@ -46,6 +46,7 @@
46
46
#include "nvim/ascii.h"
47
47
#include "nvim/buffer.h"
48
48
#include "nvim/change.h"
49
+
#include "nvim/cursor.h"
49
50
#include "nvim/edit.h"
50
51
#include "nvim/event/loop.h"
51
52
#include "nvim/event/time.h"
@@ -464,9 +465,7 @@ static void terminal_check_cursor(void)
464
465
row_to_linenr(term, term->cursor.row));
465
466
// Nudge cursor when returning to normal-mode.
466
467
int off = is_focused(term) ? 0 : (curwin->w_p_rl ? 1 : -1);
467
-
curwin->w_cursor.col = MAX(0, term->cursor.col + win_col_off(curwin) + off);
468
-
curwin->w_cursor.coladd = 0;
469
-
mb_check_adjust_col(curwin);
468
+
coladvance(MAX(0, term->cursor.col + off));
470
469
}
471
470
472
471
// Function executed before each iteration of terminal mode.
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4