Skip to content

Commit 93e95cb

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents e6715e4 + 294a7e5 commit 93e95cb

4 files changed

Lines changed: 20 additions & 7 deletions

File tree

src/term.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5231,6 +5231,13 @@ check_termcode(max_offset, buf, bufsize, buflen)
52315231
else
52325232
key_name[1] = get_pseudo_mouse_code(current_button,
52335233
is_click, is_drag);
5234+
5235+
/* Make sure the mouse position is valid. Some terminals may
5236+
* return weird values. */
5237+
if (mouse_col >= Columns)
5238+
mouse_col = Columns - 1;
5239+
if (mouse_row >= Rows)
5240+
mouse_row = Rows - 1;
52345241
}
52355242
#endif /* FEAT_MOUSE */
52365243

src/testdir/test_utf8.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ STARTTEST
99
:call setline(1, ["aaa", "あああ", "bbb"])
1010
:exe ":norm! gg0l\<C-V>jjIx\<Esc>"
1111
:let r = getline(1, '$')
12-
:
12+
:"
1313
:bwipeout!
1414
:$put=r
1515
:"
@@ -25,20 +25,20 @@ STARTTEST
2525
: return ['', '']
2626
:endfunction
2727
:command -nargs=1 -complete=customlist,CustomComplete1 Test1 echo
28-
:call feedkeys(":Test1 \<C-L>'\<C-B>$put='\<CR>", 't')
29-
:
28+
:call feedkeys(":Test1 \<C-L>'\<C-B>$put='\<CR>", 'it')
29+
:"
3030
:function! CustomComplete2(lead, line, pos)
3131
: return ['あたし', 'あたま', 'あたりめ']
3232
:endfunction
3333
:command -nargs=1 -complete=customlist,CustomComplete2 Test2 echo
34-
:call feedkeys(":Test2 \<C-L>'\<C-B>$put='\<CR>", 't')
35-
:
34+
:call feedkeys(":Test2 \<C-L>'\<C-B>$put='\<CR>", 'it')
35+
:"
3636
:function! CustomComplete3(lead, line, pos)
3737
: return ['Nこ', 'Nん', 'Nぶ']
3838
:endfunction
3939
:command -nargs=1 -complete=customlist,CustomComplete3 Test3 echo
40-
:call feedkeys(":Test3 \<C-L>'\<C-B>$put='\<CR>", 't')
41-
:
40+
:call feedkeys(":Test3 \<C-L>'\<C-B>$put='\<CR>", 'it')
41+
:"
4242
:call garbagecollect(1)
4343
:/^start:/,$wq! test.out
4444
ENDTEST

src/version.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,10 @@ static char *(features[]) =
756756

757757
static int included_patches[] =
758758
{ /* Add new patch number below this line */
759+
/**/
760+
936,
761+
/**/
762+
935,
759763
/**/
760764
934,
761765
/**/

src/window.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5790,6 +5790,8 @@ win_drag_vsep_line(dragwin, offset)
57905790
offset = room; /* Move as far as we can */
57915791
if (offset <= 0) /* No room at all, quit. */
57925792
return;
5793+
if (fr == NULL)
5794+
return; /* Safety check, should not happen. */
57935795

57945796
/* grow frame fr by offset lines */
57955797
frame_new_width(fr, fr->fr_width + offset, left, FALSE);

0 commit comments

Comments
 (0)