From bb82e6bbbad9a35ca296b42079a8f805f8d5a09b Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Tue, 13 Dec 2022 10:53:30 +0100 Subject: [PATCH] Fix GDB default history size * lisp/progmodes/gdb-mi.el (gdb): HISTSIZE might not be set. --- lisp/progmodes/gdb-mi.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index eb0e5b0481..897fe5af2c 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -874,7 +874,7 @@ gdb "_gdb_history" ".gdb_history")))) ;; gdb defaults to 256, but we'll default to comint-input-ring-size. - (hsize (getenv "HISTSIZE"))) + (hsize (or (getenv "HISTSIZE") comint-input-ring-size))) (dolist (file (append '("~/.gdbinit") (unless (string-equal (expand-file-name ".") (expand-file-name "~")) -- 2.38.1