mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
netrw.vim: gx should ignore terminal buffers #12091
netrw thinks it's a remote file due the name of a terminal buffer (term://), but a terminal buffer isn't a file. Fixes https://github.com/neovim/neovim/issues/4612#issuecomment-600321171
This commit is contained in:
@@ -5460,6 +5460,11 @@ fun! netrw#CheckIfRemote(...)
|
|||||||
else
|
else
|
||||||
let curfile= expand("%")
|
let curfile= expand("%")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Ignore terminal buffers
|
||||||
|
if &buftype ==# 'terminal'
|
||||||
|
return 0
|
||||||
|
endif
|
||||||
" call Decho("curfile<".curfile.">")
|
" call Decho("curfile<".curfile.">")
|
||||||
if curfile =~ '^\a\{3,}://'
|
if curfile =~ '^\a\{3,}://'
|
||||||
" call Dret("netrw#CheckIfRemote 1")
|
" call Dret("netrw#CheckIfRemote 1")
|
||||||
|
Reference in New Issue
Block a user