aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-02-16 15:47:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2021-02-16 15:47:37 +1300
commit403a44dc32533e631384dfcca40d520b9088b0db (patch)
treea1c0865dd0eea2c80539f27f05ec25d4373043b0 /plugin
parentMerge branch 'hotfix/v2.2.1' (diff)
parentAdd path to accommodate macOS' dynamic $TMPDIR (diff)
downloadvim-redact-pass-master.tar.gz
vim-redact-pass-master.zip
Merge branch 'hotfix/v2.2.2'HEADv2.2.2master
* hotfix/v2.2.2: Add path to accommodate macOS' dynamic $TMPDIR
Diffstat (limited to 'plugin')
-rw-r--r--plugin/redact_pass.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/redact_pass.vim b/plugin/redact_pass.vim
index 14705ac..bcb9227 100644
--- a/plugin/redact_pass.vim
+++ b/plugin/redact_pass.vim
@@ -21,4 +21,10 @@ augroup redact_pass
\,$TMPDIR/pass.?*/?*.txt
\,/tmp/pass.?*/?*.txt
\ call redact_pass#()
+ " Work around macOS' dynamic symlink structure for temporary directories
+ if has('mac')
+ autocmd VimEnter
+ \ /private/var/?*/pass.?*/?*.txt
+ \ call redact_pass#()
+ endif
augroup END