[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master f422b46: Fix ido-enable-dot-prefix for empty choice
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] master f422b46: Fix ido-enable-dot-prefix for empty choice (Bug#26997) |
Date: |
Sat, 20 May 2017 21:54:12 -0400 (EDT) |
branch: master
commit f422b46eb1d3c62c912ee0806486d017f5153e54
Author: Ryan <address@hidden>
Commit: Noam Postavsky <address@hidden>
Fix ido-enable-dot-prefix for empty choice (Bug#26997)
* lisp/ido.el (ido-set-matches-1): Only check first character of
item if it's non-empty.
Copyright-paperwork-exempt: yes
---
lisp/ido.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/ido.el b/lisp/ido.el
index 1393d3b..07a5bcf 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -3802,9 +3802,10 @@ frame, rather than all frames, regardless of value of
`ido-all-frames'."
(lambda (item)
(let ((name (ido-name item)))
(if (and (or non-prefix-dot
- (if (= (aref ido-text 0) ?.)
- (= (aref name 0) ?.)
- (/= (aref name 0) ?.)))
+ (and (> (length name) 0)
+ (if (= (aref ido-text 0) ?.)
+ (= (aref name 0) ?.)
+ (/= (aref name 0) ?.))))
(string-match re name))
(cond
((and (eq ido-cur-item 'buffer)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master f422b46: Fix ido-enable-dot-prefix for empty choice (Bug#26997),
Noam Postavsky <=