summaryrefslogtreecommitdiff
path: root/helm-files.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2020-07-05 17:17:46 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2020-07-05 17:17:46 +0200
commit840ec49156a60e808c87e332f5982e507ee3535c (patch)
treecbfb56aa2db6c57c4cc524a7ea36acd7239b18f1 /helm-files.el
parentb633e0583f9f7a2f824deaf9e52aabab6471db2a (diff)
Refresh directory when using a HFF action with prefix arg
This apply to actions involving helm-dired-action that jump to destination when done e.g. copy files. Force refresh directory even if helm-ff-cache-mode is enabled, otherwise it will not have the time to update destination directory.
Diffstat (limited to 'helm-files.el')
-rw-r--r--helm-files.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/helm-files.el b/helm-files.el
index 54686c3b..279f0485 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -4669,6 +4669,10 @@ destination for the actions copy and rename."
(setq helm-ff-cand-to-mark
(helm-get-dest-fnames-from-list files candidate dirflag))
(with-helm-after-update-hook (helm-ff-maybe-mark-candidates))
+ ;; Refresh directory even if helm-ff-cache-mode is
+ ;; enabled, it will not have the time to update
+ ;; destination directory.
+ (helm-ff-directory-files candidate t)
(if (and dirflag (eq action 'rename))
(helm-find-files-1 (file-name-directory target)
(if helm-ff-transformer-show-only-basename