Browse Source

Merge pull request #170 from phst/bug169

Fix version comparison for Emacs pretest.
Ryan C. Thompson 5 years ago
parent
commit
98d3a6e56b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ido-completing-read+.el

+ 2 - 2
ido-completing-read+.el

@@ -707,9 +707,9 @@ See `completing-read' for the meaning of the arguments."
                     '("ido cannot handle the empty string as an option when `ido-enable-dot-prefix' is non-nil; see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26997")))
 
           ;; Fix ido's broken handling of cons-style INITIAL-INPUT on
-          ;; Emacsen older than 27.1.
+          ;; Emacsen older than 27.
           (when (and (consp initial-input)
-                     (version< emacs-version "27.1"))
+                     (< emacs-major-version 27))
             ;; `completing-read' uses 0-based index while
             ;; `read-from-minibuffer' uses 1-based index.
             (cl-incf (cdr initial-input)))