branch: master commit 00b009ed0ade9765962bb2c91180d425ff808e81 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy-next-line-or-history): Update Don't call `ivy-next-line' when `ivy-previous-history-element' is called. --- ivy.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ivy.el b/ivy.el index e216554..ebd1c96 100644 --- a/ivy.el +++ b/ivy.el @@ -709,9 +709,9 @@ If the text hasn't changed as a result, forward to `ivy-alt-done'." "Move cursor vertically down ARG candidates. If the input is empty, select the previous history element instead." (interactive "p") - (when (string= ivy-text "") - (ivy-previous-history-element 1)) - (ivy-next-line arg)) + (if (string= ivy-text "") + (ivy-previous-history-element 1) + (ivy-next-line arg))) (defun ivy-previous-line (&optional arg) "Move cursor vertically up ARG candidates."