emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 85682ee 048/167: Fix "C-x h" selection and "C-b" bug


From: Oleh Krehel
Subject: [elpa] master 85682ee 048/167: Fix "C-x h" selection and "C-b" bug
Date: Tue, 08 Dec 2015 10:49:49 +0000

branch: master
commit 85682ee152f151bda6d929ac8cb24f983ebc92e0
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Fix "C-x h" selection and "C-b" bug
    
    * ivy.el (ivy--exhibit): Add another `constrain-to-field'.
    
    This ensures that the point doesn't cross into the prompt text.
    Previously, there was a bug that pressing "C-b" once more when already
    at the start of the input set `ivy-text' to "", i.e. ignoring the
    minibuffer input.
---
 ivy.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ivy.el b/ivy.el
index 98f8eab..0e1d141 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1454,6 +1454,7 @@ Insert .* between each char."
   "Insert Ivy completions display.
 Should be run via minibuffer `post-command-hook'."
   (when (memq 'ivy--exhibit post-command-hook)
+    (constrain-to-field nil (point-max))
     (setq ivy-text (ivy--input))
     (if (ivy-state-dynamic-collection ivy-last)
         ;; while-no-input would cause annoying



reply via email to

[Prev in Thread] Current Thread [Next in Thread]