mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
Merge pull request #1734 from fwalch/small-patches
vim-patch: Multiple small patches (4)
This commit is contained in:
@@ -2979,9 +2979,11 @@ do_put (
|
|||||||
}
|
}
|
||||||
if (VIsual_active)
|
if (VIsual_active)
|
||||||
lnum++;
|
lnum++;
|
||||||
} while (
|
} while (VIsual_active && lnum <= curbuf->b_visual.vi_end.lnum);
|
||||||
VIsual_active && lnum <= curbuf->b_visual.vi_end.lnum
|
|
||||||
);
|
if (VIsual_active) { /* reset lnum to the last visual line */
|
||||||
|
lnum--;
|
||||||
|
}
|
||||||
|
|
||||||
curbuf->b_op_end = curwin->w_cursor;
|
curbuf->b_op_end = curwin->w_cursor;
|
||||||
/* For "CTRL-O p" in Insert mode, put cursor after last char */
|
/* For "CTRL-O p" in Insert mode, put cursor after last char */
|
||||||
|
@@ -3645,6 +3645,7 @@ set_string_option_direct (
|
|||||||
idx = findoption(name);
|
idx = findoption(name);
|
||||||
if (idx < 0) { /* not found (should not happen) */
|
if (idx < 0) { /* not found (should not happen) */
|
||||||
EMSG2(_(e_intern2), "set_string_option_direct()");
|
EMSG2(_(e_intern2), "set_string_option_direct()");
|
||||||
|
EMSG2(_("For option %s"), name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2962,8 +2962,13 @@ win_line (
|
|||||||
if (shl->startcol != MAXCOL
|
if (shl->startcol != MAXCOL
|
||||||
&& v >= (long)shl->startcol
|
&& v >= (long)shl->startcol
|
||||||
&& v < (long)shl->endcol) {
|
&& v < (long)shl->endcol) {
|
||||||
|
int tmp_col = v + MB_PTR2LEN(ptr);
|
||||||
|
|
||||||
|
if (shl->endcol < tmp_col) {
|
||||||
|
shl->endcol = tmp_col;
|
||||||
|
}
|
||||||
shl->attr_cur = shl->attr;
|
shl->attr_cur = shl->attr;
|
||||||
} else if (v >= (long)shl->endcol && shl->lnum == lnum) {
|
} else if (v == (long)shl->endcol) {
|
||||||
shl->attr_cur = 0;
|
shl->attr_cur = 0;
|
||||||
|
|
||||||
next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
|
next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
|
||||||
|
@@ -3294,10 +3294,11 @@ again:
|
|||||||
if (VIsual_active) {
|
if (VIsual_active) {
|
||||||
/* If the end is before the start there is no text between tags, select
|
/* If the end is before the start there is no text between tags, select
|
||||||
* the char under the cursor. */
|
* the char under the cursor. */
|
||||||
if (lt(end_pos, start_pos))
|
if (lt(end_pos, start_pos)) {
|
||||||
curwin->w_cursor = start_pos;
|
curwin->w_cursor = start_pos;
|
||||||
else if (*p_sel == 'e')
|
} else if (*p_sel == 'e') {
|
||||||
++curwin->w_cursor.col;
|
inc_cursor();
|
||||||
|
}
|
||||||
VIsual = start_pos;
|
VIsual = start_pos;
|
||||||
VIsual_mode = 'v';
|
VIsual_mode = 'v';
|
||||||
redraw_curbuf_later(INVERTED); /* update the inversion */
|
redraw_curbuf_later(INVERTED); /* update the inversion */
|
||||||
|
@@ -7,9 +7,9 @@ STARTTEST
|
|||||||
:" --- Check that "matcharg()" returns the correct group and pattern if a match
|
:" --- Check that "matcharg()" returns the correct group and pattern if a match
|
||||||
:" --- is defined.
|
:" --- is defined.
|
||||||
:let @r = "*** Test 1: "
|
:let @r = "*** Test 1: "
|
||||||
:highlight MyGroup1 ctermbg=red guibg=red
|
:highlight MyGroup1 term=bold ctermbg=red guibg=red
|
||||||
:highlight MyGroup2 ctermbg=green guibg=green
|
:highlight MyGroup2 term=italic ctermbg=green guibg=green
|
||||||
:highlight MyGroup3 ctermbg=blue guibg=blue
|
:highlight MyGroup3 term=underline ctermbg=blue guibg=blue
|
||||||
:match MyGroup1 /TODO/
|
:match MyGroup1 /TODO/
|
||||||
:2match MyGroup2 /FIXME/
|
:2match MyGroup2 /FIXME/
|
||||||
:3match MyGroup3 /XXX/
|
:3match MyGroup3 /XXX/
|
||||||
|
@@ -191,18 +191,18 @@ static int included_patches[] = {
|
|||||||
//550,
|
//550,
|
||||||
//549,
|
//549,
|
||||||
//548 NA
|
//548 NA
|
||||||
//547,
|
547,
|
||||||
//546,
|
//546,
|
||||||
//545,
|
545,
|
||||||
//544 NA
|
//544 NA
|
||||||
543,
|
543,
|
||||||
//542,
|
//542,
|
||||||
//541,
|
//541,
|
||||||
//540 NA
|
//540 NA
|
||||||
//539,
|
//539,
|
||||||
//538,
|
538,
|
||||||
//537,
|
//537,
|
||||||
//536,
|
536,
|
||||||
//535,
|
//535,
|
||||||
//534 NA
|
//534 NA
|
||||||
//533,
|
//533,
|
||||||
@@ -217,7 +217,7 @@ static int included_patches[] = {
|
|||||||
//524,
|
//524,
|
||||||
//523 NA
|
//523 NA
|
||||||
//522,
|
//522,
|
||||||
//521,
|
521,
|
||||||
520,
|
520,
|
||||||
//519,
|
//519,
|
||||||
518,
|
518,
|
||||||
|
Reference in New Issue
Block a user