Skip to content

Commit

Permalink
Merge pull request #1824 from Kariiem/master
Browse files Browse the repository at this point in the history
ghci-script-mode: Fix script loading by `ghci-script-mode-load`.
  • Loading branch information
purcell committed Sep 20, 2023
2 parents 5ae350d + 936040d commit 0207074
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ghci-script-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
(defun ghci-script-mode-load ()
"Load the current script file into the GHCi session."
(interactive)
(let ((buffer (haskell-session-interactive-buffer (haskell-session)))
(filename (buffer-file-name)))
(save-buffer)
(save-buffer)
(let ((filename (buffer-file-name))
(buffer (haskell-session-interactive-buffer (haskell-session))))
(with-current-buffer buffer
(set-marker haskell-interactive-mode-prompt-start (point-max))
(haskell-interactive-mode-run-expr
Expand Down

0 comments on commit 0207074

Please sign in to comment.