aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorLeonardo Mello <lsvmello@gmail.com>2023-09-18 16:50:47 -0300
committerJustin M. Keyes <justinkz@gmail.com>2023-10-06 12:59:58 +0200
commit1dd700a8d9275439fbc71ac5adeb59914bdbd5cf (patch)
tree943ad468a200645b9d7520363dbf76fccb5767f7 /runtime
parent4e4ad4312e6b3755a2114ab81c62033e6bc616fe (diff)
downloadrneovim-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 'runtime')
-rw-r--r--runtime/doc/news.txt3
-rw-r--r--runtime/doc/options.txt2
-rw-r--r--runtime/doc/vim_diff.txt2
3 files changed, 6 insertions, 1 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index f0d01f92e7..2bf912dbfd 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -15,6 +15,9 @@ BREAKING CHANGES *news-breaking*
The following changes may require adaptations in user config or plugins.
+• Windows file path drive letters are now detected even if ":" is not in
+ 'isfname'. The default 'isfname' no longer includes ":".
+
• |vim.tbl_islist()| now checks whether a table is actually list-like (i.e.,
has integer keys without gaps and starting from 1). For the previous
behavior (only check for integer keys, allow gaps or not starting with 1),
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index bc207d7755..283c1e3612 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -3453,7 +3453,7 @@ A jump table for the options with a short description can be found at |Q_op|.
*'isfname'* *'isf'*
'isfname' 'isf' string (default for Windows:
- "@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,="
+ "@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],@-@,!,~,="
otherwise: "@,48-57,/,.,-,_,+,,,#,$,%,~,=")
global
The characters specified by this option are included in file names and
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index e9c04443a6..974aa051cf 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -53,6 +53,8 @@ Defaults *nvim-defaults*
- 'hlsearch' is enabled
- 'include' defaults to "". The C ftplugin sets it to "^\\s*#\\s*include"
- 'incsearch' is enabled
+- 'isfname' does not include ":" on Windows. Include ":" in 'isfname' to treat
+ it as part of a filename anywhere in the name (not only the drive letter).
- 'joinspaces' is disabled
- 'langnoremap' is enabled
- 'langremap' is disabled