Skip to content

Commit f779e6b

Browse files
committed
Minor simplification
1 parent 47861d3 commit f779e6b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gnuplot.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ buffer."
13031303
(defun gnuplot--make-comint-buffer ()
13041304
"Switch to the gnuplot program buffer or create one if none exists."
13051305
(unless (and gnuplot-process (eq (process-status gnuplot-process) 'run)
1306-
gnuplot-buffer (buffer-live-p gnuplot-buffer))
1306+
(buffer-live-p gnuplot-buffer))
13071307
(setq gnuplot-buffer (apply #'make-comint gnuplot-process-name gnuplot-program nil
13081308
(and gnuplot-program-args (split-string gnuplot-program-args)))
13091309
gnuplot-process (get-buffer-process gnuplot-buffer))
@@ -1417,8 +1417,7 @@ gnuplot process buffer will be displayed in a window."
14171417

14181418
(defun gnuplot--setup-comint-for-image-mode ()
14191419
"Setup comint for image."
1420-
(when (and gnuplot-buffer (buffer-live-p gnuplot-buffer)
1421-
(get-buffer-process gnuplot-buffer))
1420+
(when (and (buffer-live-p gnuplot-buffer) (get-buffer-process gnuplot-buffer))
14221421
(with-current-buffer gnuplot-buffer
14231422
(if gnuplot-inline-image-mode
14241423
(progn

0 commit comments

Comments
 (0)