mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
fix: gf fails on "foo/bar.txt:1:2" on Windows
Problem:
On Windows, "gf" fails on a filepath that has a line:column suffix.
Example:
E447: Can't find file "src/app/core/services/identity/identity.service.ts:64:23"
Solution:
- Remove ":" from 'isfname' on Windows. Colon is not a valid filename
character (except for the drive-letter).
- Handle drive letters specially in file_name_in_line().
Fixes #25160
This commit is contained in:
committed by
Justin M. Keyes
parent
4e4ad4312e
commit
1dd700a8d9
@@ -26,6 +26,9 @@ if exists('s:did_load')
|
||||
set sessionoptions+=options
|
||||
set viewoptions+=options
|
||||
set switchbuf=
|
||||
if has('win32')
|
||||
set isfname+=:
|
||||
endif
|
||||
if g:testname !~ 'test_mapping.vim$'
|
||||
" Make "Q" switch to Ex mode.
|
||||
" This does not work for all tests.
|
||||
|
||||
Reference in New Issue
Block a user