Commits

Antonio Cuni committed f97ee4f

kill the active process in case it's still running (e.g., waiting at the pdb prompt)

Comments (0)

Files changed (1)

         (buffer (get-buffer-create "*pytest*")))
     (if (not (equal (current-buffer) buffer))
         (switch-to-buffer-other-window buffer))
+    (if (get-buffer-process (current-buffer))
+        (term-kill-subjob))
     (setq buffer-read-only nil)
     (erase-buffer)
     (insert cmdline)