(defun gterm--copy-mode-exit () "Exit copy mode and return to terminal mode." (interactive) ;; <-- add this (when (region-active-p)
(defun gterm--copy-mode-exit () "Exit copy mode and return to terminal mode." (interactive) ;; <-- add this (when (region-active-p)