Skip to content

Ivy: Non-prefix matches break TAB #266

@PythonNut

Description

@PythonNut
  1. emacs24.5 -Q
  2. M-: (setq ivy-re-builders-alist '((t . ivy--regex-fuzzy))) RET
  3. C-x C-f
  4. Type a non-prefix match.
  5. TAB

Should produce:

Debugger entered--Lisp error: (wrong-type-argument integerp nil)
  #[257 "\211\301\300�\"\302O\207" ["coco" string-match nil] 5 "\n\n(fn STR)"](#("config-company.el" 0 17 (dirp nil)))
  mapcar(#[257 "\211\301\300�\"\302O\207" ["coco" string-match nil] 5 "\n\n(fn STR)"] (#("config-company.el" 0 17 (dirp nil))))
  ivy-partial()
  ivy-partial-or-done()
  call-interactively(ivy-partial-or-done nil nil)
  command-execute(ivy-partial-or-done)
  read-from-minibuffer("Find file: " nil (keymap (keymap) keymap (67108903 . ivy-avy) (33554464 . ivy-restrict-to-matches) (11 . ivy-kill-line) (15 . hydra-ivy/body) (22 . ivy-scroll-up-command) (7 . minibuffer-keyboard-quit) (6 . ivy-forward-char) (4 . ivy-delete-char) (127 . ivy-backward-delete-char) (32 . self-insert-command) (18 . ivy-reverse-i-search) (19 . ivy-next-line-or-history) (up . ivy-previous-line) (down . ivy-next-line) (16 . ivy-previous-line) (14 . ivy-next-line) (9 . ivy-partial-or-done) (10 . ivy-alt-done) (27 keymap (119 . ivy-kill-ring-save) (15 . ivy-dispatching-call) (111 . ivy-dispatching-done) (105 . ivy-insert-current) (106 . ivy-yank-word) (113 . ivy-toggle-regexp-quote) (16 . ivy-previous-line-and-call) (14 . ivy-next-line-and-call) (118 . ivy-scroll-down-command) (112 . ivy-previous-history-element) (110 . ivy-next-history-element) (62 . ivy-end-of-buffer) (60 . ivy-beginning-of-buffer) (100 . ivy-kill-word) (127 . ivy-backward-kill-word) (10 . ivy-immediate-done) (13 . ivy-call)) (13 . ivy-done)) nil file-name-history)
  ivy-read("Find file: " read-file-name-internal :matcher counsel--find-file-matcher :action #[257 "\303�\304H  >\204�\305\306\307\310#\210�\311H!r\312\313\304\314\315\316��!\317\"\320\321%DC\216\322�@\323\"\210\324\325�\n\"!*\207" [ivy-last cl-struct-ivy-state-tags ivy--directory internal--before-with-selected-window 0 error "%s accessing a non-%s" ivy-state-window ivy-state 11 funcall make-byte-code "\301\300!\207" vconcat vector [internal--after-with-selected-window] 2 "\n\n(fn)" select-window norecord find-file expand-file-name] 9 "\n\n(fn X)"] :preselect nil :require-match confirm-after-completion :history file-name-history :keymap (keymap))
  counsel-find-file()
  call-interactively(counsel-find-file nil nil)
  command-execute(counsel-find-file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions