branch: externals/xeft commit 8850838345decbc1bd22112ebf63d6107ca85b9c Author: Yuan Fu <caso...@gmail.com> Commit: Yuan Fu <caso...@gmail.com>
Fix "create note" prompt * xeft.el (xeft-refresh): Don't show "create note" prompt if search phrase is empty. --- xeft.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xeft.el b/xeft.el index 79396b3771..197bf47cd9 100644 --- a/xeft.el +++ b/xeft.el @@ -494,7 +494,8 @@ non-nil, display all results." file search-phrase)) ;; NOTE: this string is referred in ;; ‘xeft-create-note’. - (insert "Press RET to create a new note")) + (unless phrase-empty + (insert "Press RET to create a new note"))) ;; Insert clipped notice. (when list-clipped (insert