Commit ccb13f4d authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(pcomplete-restore-windows): Remove redundant check.

parent 09c013ef
...@@ -934,7 +934,7 @@ generate the completions list. This means that the hook ...@@ -934,7 +934,7 @@ generate the completions list. This means that the hook
(if pcomplete-last-window-config (if pcomplete-last-window-config
(let* ((cbuf (get-buffer "*Completions*")) (let* ((cbuf (get-buffer "*Completions*"))
(cwin (and cbuf (get-buffer-window cbuf)))) (cwin (and cbuf (get-buffer-window cbuf))))
(when (and cwin (window-live-p cwin)) (when (window-live-p cwin)
(bury-buffer cbuf) (bury-buffer cbuf)
(set-window-configuration pcomplete-last-window-config)))) (set-window-configuration pcomplete-last-window-config))))
(setq pcomplete-last-window-config nil (setq pcomplete-last-window-config nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment