mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
Merge 'vim-patch: Small patches' #1873
This commit is contained in:
commit
d30464264a
@ -5752,6 +5752,8 @@ stop_insert (
|
||||
if (curwin->w_cursor.lnum != tpos.lnum)
|
||||
curwin->w_cursor = tpos;
|
||||
else {
|
||||
/* reset tpos, could have been invalidated in the loop above */
|
||||
tpos = curwin->w_cursor;
|
||||
tpos.col++;
|
||||
if (cc != NUL && gchar_pos(&tpos) == NUL) {
|
||||
++curwin->w_cursor.col; // put cursor back on the NUL
|
||||
|
@ -3444,6 +3444,10 @@ win_line (
|
||||
1);
|
||||
// TODO: is passing p for start of the line OK?
|
||||
n_extra = win_lbr_chartabsize(wp, line, p, (colnr_T)vcol, NULL) - 1;
|
||||
if (c == TAB && n_extra + col > wp->w_width) {
|
||||
n_extra = (int)wp->w_buffer->b_p_ts
|
||||
- vcol % (int)wp->w_buffer->b_p_ts - 1;
|
||||
}
|
||||
c_extra = ' ';
|
||||
if (vim_iswhite(c)) {
|
||||
if (c == TAB)
|
||||
|
@ -178,6 +178,8 @@ static char *(features[]) = {
|
||||
};
|
||||
|
||||
static int included_patches[] = {
|
||||
//591 NA
|
||||
//590,
|
||||
//589 NA
|
||||
//588,
|
||||
//587,
|
||||
@ -245,15 +247,15 @@ static int included_patches[] = {
|
||||
//525,
|
||||
//524,
|
||||
//523 NA
|
||||
//522,
|
||||
//522 NA
|
||||
521,
|
||||
520,
|
||||
//519,
|
||||
518,
|
||||
//517,
|
||||
517,
|
||||
516,
|
||||
//515,
|
||||
//514,
|
||||
514,
|
||||
513,
|
||||
//512 NA
|
||||
//511 NA
|
||||
|
Loading…
Reference in New Issue
Block a user