1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 03:10:06 +08:00

Use str2nr function

close https://github.com/SpaceVim/SpaceVim/issues/4075
This commit is contained in:
Shidong Wang 2021-02-27 21:22:42 +08:00
parent a9a79af448
commit a3014e1d8b

View File

@ -516,8 +516,8 @@ function! s:open_item_in_tab() abort
let s:MPT._quit = 1
let line = getline('.')
let filename = fnameescape(split(line, ':\d\+:')[0])
let linenr = matchstr(line, ':\d\+:')[1:-2]
let colum = matchstr(line, '\(:\d\+\)\@<=:\d\+:')[1:-2]
let linenr = str2nr(matchstr(line, ':\d\+:')[1:-2])
let colum = str2nr(matchstr(line, '\(:\d\+\)\@<=:\d\+:')[1:-2])
if s:preview_able == 1
call s:close_preview_win()
endif