diff --git a/gterm.el b/gterm.el index f38df48..fe16fb8 100644 --- a/gterm.el +++ b/gterm.el @@ -734,6 +734,9 @@ Event format: (drag-n-drop POSITION (file OPERATIONS PATH...))." (when gterm--refresh-timer (cancel-timer gterm--refresh-timer)) (when (and gterm--process (process-live-p gterm--process)) + ;; Wait for history to save before exit + (signal-process gterm--process 'SIGHUP) + (accept-process-output gterm--process 0.1) (delete-process gterm--process)) (when gterm--term (gterm-free gterm--term)