diff options
-rw-r--r-- | lisp/ibuf-ext.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index 2046c9a2b75..485a7351ff9 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el @@ -1041,9 +1041,8 @@ currently used by buffers." "Toggle current view to buffers with filename matching QUALIFIER." (:description "filename" :reader (read-from-minibuffer "Filter by filename (regexp): ")) - (ibuffer-awhen (with-current-buffer buf - (ibuffer-buffer-file-name)) - (string-match qualifier it))) + (ibuffer-awhen (buffer-local-value 'buffer-file-name buf) + (string-match qualifier it))) ;;;###autoload (autoload 'ibuffer-filter-by-size-gt "ibuf-ext") (define-ibuffer-filter size-gt |