Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better compatibility with flx-ido. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ido-grid.el
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ See `ido-grid-up', `ido-grid-down', `ido-grid-left', `ido-grid-right' etc."
(defvar ido-grid--selection-offset 0)
(defvar ido-grid--cells 0)
(defvar ido-grid--match-count 0)
(defvar ido-grid--text "")

(defvar ido-grid--rows 0)
(defvar ido-grid--cols 0)
Expand Down Expand Up @@ -423,7 +424,9 @@ See `ido-grid-up', `ido-grid-down', `ido-grid-left', `ido-grid-right' etc."

(when might-change-something
(ido-grid--log "ido-grid--set-matches checking for change")
(if (ido-grid--same-matches ido-matches ido-grid--matches)
;; Changing ido-text might change faces of matches (flx-ido case)
(if (and (string-equal ido-text ido-grid--text)
(ido-grid--same-matches ido-matches ido-grid--matches))
(progn
(ido-grid--log "ido-grid--set-matches no changes")
(ido-grid--log "ido-grid--set-matches %s %s %s"
Expand All @@ -441,7 +444,8 @@ See `ido-grid-up', `ido-grid-down', `ido-grid-left', `ido-grid-right' etc."
(setq ido-grid--matches (copy-sequence ido-matches)
ido-grid--match-count (length ido-matches)
ido-grid--selection (car ido-grid--matches)
ido-grid--selection-offset 0)))
ido-grid--selection-offset 0
ido-grid--text ido-text)))
))

(unless (and
Expand Down