Skip to content

Commit

Permalink
* helm-regexp.el (helm-moccur-mode--revert-buffer-function): Fix when…
Browse files Browse the repository at this point in the history
… one or more buffers have been killed.
  • Loading branch information
thierryvolpiatto committed Jun 22, 2014
1 parent 37365ec commit bef4335
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helm-regexp.el
Expand Up @@ -418,7 +418,11 @@ Special commands:
(insert
"\n"
(cl-loop for buf in buflst
for bufstr = (with-current-buffer buf (buffer-string))
for bufstr = (or (and (buffer-live-p (get-buffer buf))
(with-current-buffer buf
(buffer-string)))
"")
unless (string= bufstr "")
do (add-text-properties
0 (length bufstr)
`(buffer-name ,(buffer-name (get-buffer buf)))
Expand Down

0 comments on commit bef4335

Please sign in to comment.