diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-07 06:48:10 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-02-07 06:48:10 +0800 |
commit | d457168e3b6078ae018a2b1fe59ff54f82d3ba14 (patch) | |
tree | 543a259bbda316fed82db3b46759f28dbdae5c83 /runtime | |
parent | 380bc4fe22e8dbd478e58d568e0d749df439fec9 (diff) | |
download | rneovim-d457168e3b6078ae018a2b1fe59ff54f82d3ba14.tar.gz rneovim-d457168e3b6078ae018a2b1fe59ff54f82d3ba14.tar.bz2 rneovim-d457168e3b6078ae018a2b1fe59ff54f82d3ba14.zip |
vim-patch:8.2.0208: fnamemodify() does not apply ":~" when followed by ":."
Problem: Fnamemodify() does not apply ":~" when followed by ":.".
Solution: Don't let a failing ":." cause the ":~" to be skipped. (Yasuhiro
Matsumoto, closes vim/vim#5577)
https://github.com/vim/vim/commit/d816cd94d87afb73c505bf1e5cd5e07522482113
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/cmdline.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 641cd93386..f2f6ebb2c9 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -908,8 +908,7 @@ These modifiers can be given, in this order: directory. :. Reduce file name to be relative to current directory, if possible. File name is unmodified if it is not below the - current directory, but on MS-Windows the drive is removed if - it is the current drive. + current directory. For maximum shortness, use ":~:.". :h Head of the file name (the last component and any separators removed). Cannot be used with :e, :r or :t. |