diff options
author | Leonardo Mello <lsvmello@gmail.com> | 2023-09-18 16:50:47 -0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-10-06 12:59:58 +0200 |
commit | 1dd700a8d9275439fbc71ac5adeb59914bdbd5cf (patch) | |
tree | 943ad468a200645b9d7520363dbf76fccb5767f7 /src/nvim/options.lua | |
parent | 4e4ad4312e6b3755a2114ab81c62033e6bc616fe (diff) | |
download | rneovim-1dd700a8d9275439fbc71ac5adeb59914bdbd5cf.tar.gz rneovim-1dd700a8d9275439fbc71ac5adeb59914bdbd5cf.tar.bz2 rneovim-1dd700a8d9275439fbc71ac5adeb59914bdbd5cf.zip |
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
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index a0b9306908..e70fe8614f 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -4298,9 +4298,9 @@ return { defaults = { condition = 'BACKSLASH_IN_FILENAME', if_false = '@,48-57,/,.,-,_,+,,,#,$,%,~,=', - if_true = '@,48-57,/,\\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,=', + if_true = '@,48-57,/,\\,.,-,_,+,,,#,$,%,{,},[,],@-@,!,~,=', doc = [[for Windows: - "@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,=" + "@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],@-@,!,~,=" otherwise: "@,48-57,/,.,-,_,+,,,#,$,%,~,="]], }, deny_duplicates = true, |