[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm e31a81506d 10/11: Do not update when doing C-k on an
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm e31a81506d 10/11: Do not update when doing C-k on an empty minibuffer |
Date: |
Thu, 6 Jun 2024 10:00:15 -0400 (EDT) |
branch: elpa/helm
commit e31a81506da2087cb64239eebd630b871a5e53cf
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Do not update when doing C-k on an empty minibuffer
This change the behavior of helm--delete-minibuffer-contents-from
which was force updating for no reasons and making the intention
unclear when using it directly like in helm-select-action.
---
helm-core.el | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/helm-core.el b/helm-core.el
index d249e1bb7b..64fa9de041 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -5661,8 +5661,13 @@ If action buffer is selected, back to the Helm buffer."
(helm-subr-native-elisp-p
actions))
"Anonymous" actions))
(helm-show-action-buffer actions)
- ;; Be sure the minibuffer is entirely deleted
(bug#907).
- (helm--delete-minibuffer-contents-from "")
+ ;; Be sure the minibuffer is entirely deleted
+ ;; (bug#907). Previously this was done from
+ ;; `helm--delete-minibuffer-contents-from' which
+ ;; was itself force updating, now do it
explicitely
+ ;; from here.
+ (helm-set-pattern "" t)
+ (helm-force-update)
;; Unhide minibuffer to make visible action
prompt [1].
(with-selected-window (minibuffer-window)
(remove-overlays) (setq cursor-type t))
@@ -6625,19 +6630,18 @@ Used generally to modify current selection."
;; Giving an empty string value to FROM-STR delete all.
(let ((input (minibuffer-contents)))
(helm-reset-yank-point)
- (if (> (length input) 0)
- ;; minibuffer is not empty, delete contents from end
- ;; of FROM-STR and update.
- (progn (helm-set-pattern from-str t) (helm-update presel))
- ;; minibuffer is already empty, force update.
- (helm-force-update presel))))
+ (unless (zerop (length input))
+ ;; minibuffer is not empty, delete contents from end
+ ;; of FROM-STR and update.
+ (helm-set-pattern from-str t)
+ (helm-update presel))))
(defun helm-delete-minibuffer-contents (&optional arg)
"Delete minibuffer contents.
When `helm-delete-minibuffer-contents-from-point' is non-nil, delete
minibuffer contents from point instead of deleting all. With a prefix
ARG reverse this behaviour. When at the end of minibuffer, delete all
-but if a prefix ARG were given preselect current selection when
+but if a prefix ARG were given also preselect current selection when
updating if possible."
(interactive "P")
(with-helm-alive-p
- [nongnu] elpa/helm updated (aa51c1a8d6 -> 8ef8bc4ee8), ELPA Syncer, 2024/06/06
- [nongnu] elpa/helm cd3107ea57 04/11: Allow using a function for help in *-read-answer, ELPA Syncer, 2024/06/06
- [nongnu] elpa/helm 0d76b45321 03/11: Provide help for helm-read-answer-dolist-with-action, ELPA Syncer, 2024/06/06
- [nongnu] elpa/helm a2f5185d61 08/11: Fix source name in helm-fd, ELPA Syncer, 2024/06/06
- [nongnu] elpa/helm e31a81506d 10/11: Do not update when doing C-k on an empty minibuffer,
ELPA Syncer <=
- [nongnu] elpa/helm 73b1641e51 02/11: Provide a HELP argument to helm-read-answer, ELPA Syncer, 2024/06/06
- [nongnu] elpa/helm ddd9365725 01/11: Disable helm for read-multiple-choice--long-answers, ELPA Syncer, 2024/06/06
- [nongnu] elpa/helm e1442071ae 05/11: Provide help in several read-answer's, ELPA Syncer, 2024/06/06
- [nongnu] elpa/helm ba204d3b81 07/11: Add Fd and Etags to helm-files-save-history-extra-sources, ELPA Syncer, 2024/06/06
- [nongnu] elpa/helm 76023fbe80 06/11: Expand file name in helm-files-save-file-name-history, ELPA Syncer, 2024/06/06
- [nongnu] elpa/helm 7e926402cd 09/11: Enhance helm-delete-minibuffer-contents prefix arg behavior, ELPA Syncer, 2024/06/06
- [nongnu] elpa/helm 8ef8bc4ee8 11/11: Update NEWS, ELPA Syncer, 2024/06/06