mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
Merge pull request #13209 from janlazo/vim-8.2.1942
vim-patch:8.2.{1165,1942}
This commit is contained in:
@@ -450,7 +450,7 @@ bool mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump)
|
|||||||
|
|
||||||
// skip line number and fold column in front of the line
|
// skip line number and fold column in front of the line
|
||||||
col -= win_col_off(win);
|
col -= win_col_off(win);
|
||||||
if (col < 0) {
|
if (col <= 0) {
|
||||||
col = 0;
|
col = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -3602,6 +3602,10 @@ func Test_lhelpgrep_autocmd()
|
|||||||
au BufEnter * call setqflist([], 'f')
|
au BufEnter * call setqflist([], 'f')
|
||||||
augroup END
|
augroup END
|
||||||
call assert_fails('helpgrep quickfix', 'E925:')
|
call assert_fails('helpgrep quickfix', 'E925:')
|
||||||
|
" run the test with a help window already open
|
||||||
|
help
|
||||||
|
wincmd w
|
||||||
|
call assert_fails('helpgrep quickfix', 'E925:')
|
||||||
augroup QF_Test
|
augroup QF_Test
|
||||||
au! BufEnter
|
au! BufEnter
|
||||||
augroup END
|
augroup END
|
||||||
|
@@ -3,7 +3,6 @@ local helpers = require('test.functional.helpers')(after_each)
|
|||||||
local Screen = require('test.functional.ui.screen')
|
local Screen = require('test.functional.ui.screen')
|
||||||
|
|
||||||
local eq = helpers.eq
|
local eq = helpers.eq
|
||||||
local neq = helpers.neq
|
|
||||||
local NIL = helpers.NIL
|
local NIL = helpers.NIL
|
||||||
local feed = helpers.feed
|
local feed = helpers.feed
|
||||||
local clear = helpers.clear
|
local clear = helpers.clear
|
||||||
@@ -13,7 +12,6 @@ local iswin = helpers.iswin
|
|||||||
local command = helpers.command
|
local command = helpers.command
|
||||||
local write_file = helpers.write_file
|
local write_file = helpers.write_file
|
||||||
local redir_exec = helpers.redir_exec
|
local redir_exec = helpers.redir_exec
|
||||||
local alter_slashes = helpers.alter_slashes
|
|
||||||
local exec_lua = helpers.exec_lua
|
local exec_lua = helpers.exec_lua
|
||||||
|
|
||||||
local screen
|
local screen
|
||||||
|
Reference in New Issue
Block a user