* lisp/progmodes/octave.el (octave-send-region): Deactivate mark
after sending the region (bug#32282), since this is how these commands
usually work.
;; https://lists.gnu.org/r/emacs-devel/2013-10/msg00095.html
(compilation-forget-errors)
(insert-before-markers string "\n")
- (comint-send-string proc (concat string "\n"))))
+ (comint-send-string proc (concat string "\n")))
+ (deactivate-mark))
(if octave-send-show-buffer
(display-buffer inferior-octave-buffer)))