Permalink
Browse files

When setting filter groups, only call ibuffer-update if ibuffer is ru…

…nning (fixes #4)
  • Loading branch information...
1 parent a37a559 commit 37918920b472b0c10ca284e3ccc2b7ebce767f67 @purcell committed Dec 17, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 ibuffer-vc.el
View
@@ -134,7 +134,12 @@ file is not under version control"
"Set the current filter groups to filter by vc root dir."
(interactive)
(setq ibuffer-filter-groups (ibuffer-vc-generate-filter-groups-by-vc-root))
- (ibuffer-update nil t))
+ (message "ibuffer-vc: groups set")
+ (let ((ibuf (get-buffer "*Ibuffer*")))
+ (when ibuf
+ (with-current-buffer ibuf
+ (pop-to-buffer ibuf)
+ (ibuffer-update nil t)))))
;;; Display vc status info in the ibuffer list

0 comments on commit 3791892

Please sign in to comment.