From a8835cbe141305a255b880722fff72361ff8b98b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 12 Jun 2025 10:04:51 +0300 Subject: [PATCH] ; Fix last change. (cherry picked from commit 323ac96236cac34a4c63b4b9be8a7369650069a7) --- lisp/term.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/term.el b/lisp/term.el index f35c019039f..1f860156684 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -3065,6 +3065,9 @@ See `term-prompt-regexp'." (defconst term-control-seq-prefix-regexp "[\032\e]") +(defconst term--osc-max-bytes (* 32 1024 1024) + "Limit the length of OSC sequences to keep in memory.") + (defun term-emulate-terminal (proc str) (when (buffer-live-p (process-buffer proc)) (with-current-buffer (process-buffer proc) -- 2.39.5