]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last change.
authorEli Zaretskii <eliz@gnu.org>
Thu, 12 Jun 2025 07:04:51 +0000 (10:04 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:11:56 +0000 (10:11 +0200)
(cherry picked from commit 323ac96236cac34a4c63b4b9be8a7369650069a7)

lisp/term.el

index f35c019039f9f278f4e5d8242cbcc19bcae2e9d9..1f86015668480cb7229d3dceccaf81ab67ccec7e 100644 (file)
@@ -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)