Skip to content

Commit 2b0d478

Browse files
committed
Fix buffer popping in presentation mode
1 parent ccbb6eb commit 2b0d478

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

haskell-presentation-mode.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ SESSION as the current haskell-session."
5353
(insert code "\n\n")
5454
(font-lock-fontify-region point (point))
5555
(goto-char point))))
56-
(if (and (boundp 'haskell-presentation-mode)
57-
haskell-presentation-mode)
56+
(if (eq major-mode 'haskell-presentation-mode)
5857
(switch-to-buffer buffer)
5958
(pop-to-buffer buffer))))
6059

0 commit comments

Comments
 (0)