mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 01:09:56 +08:00
Use str2nr function
close https://github.com/SpaceVim/SpaceVim/issues/4075
This commit is contained in:
parent
a9a79af448
commit
a3014e1d8b
@ -516,8 +516,8 @@ function! s:open_item_in_tab() abort
|
|||||||
let s:MPT._quit = 1
|
let s:MPT._quit = 1
|
||||||
let line = getline('.')
|
let line = getline('.')
|
||||||
let filename = fnameescape(split(line, ':\d\+:')[0])
|
let filename = fnameescape(split(line, ':\d\+:')[0])
|
||||||
let linenr = matchstr(line, ':\d\+:')[1:-2]
|
let linenr = str2nr(matchstr(line, ':\d\+:')[1:-2])
|
||||||
let colum = matchstr(line, '\(:\d\+\)\@<=:\d\+:')[1:-2]
|
let colum = str2nr(matchstr(line, '\(:\d\+\)\@<=:\d\+:')[1:-2])
|
||||||
if s:preview_able == 1
|
if s:preview_able == 1
|
||||||
call s:close_preview_win()
|
call s:close_preview_win()
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user