Mercurial > vim
comparison runtime/doc/cmdline.txt @ 19299:8b710057093c v8.2.0208
patch 8.2.0208: fnamemodify() does not apply ":~" when followed by ":."
Commit: https://github.com/vim/vim/commit/d816cd94d87afb73c505bf1e5cd5e07522482113
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 4 22:23:09 2020 +0100
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 #5577)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Feb 2020 22:30:03 +0100 |
parents | 130acb903dbe |
children | a7a24d06d7ce |
comparison
equal
deleted
inserted
replaced
19298:3b5c07c8e82b | 19299:8b710057093c |
---|---|
931 :~ Reduce file name to be relative to the home directory, if | 931 :~ Reduce file name to be relative to the home directory, if |
932 possible. File name is unmodified if it is not below the home | 932 possible. File name is unmodified if it is not below the home |
933 directory. | 933 directory. |
934 :. Reduce file name to be relative to current directory, if | 934 :. Reduce file name to be relative to current directory, if |
935 possible. File name is unmodified if it is not below the | 935 possible. File name is unmodified if it is not below the |
936 current directory, but on MS-Windows the drive is removed if | 936 current directory. |
937 it is the current drive. | |
938 For maximum shortness, use ":~:.". | 937 For maximum shortness, use ":~:.". |
939 :h Head of the file name (the last component and any separators | 938 :h Head of the file name (the last component and any separators |
940 removed). Cannot be used with :e, :r or :t. | 939 removed). Cannot be used with :e, :r or :t. |
941 Can be repeated to remove several components at the end. | 940 Can be repeated to remove several components at the end. |
942 When the file name ends in a path separator, only the path | 941 When the file name ends in a path separator, only the path |