]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Don't nest double quotes in tuiterm.exp
authorTom Tromey <tromey@adacore.com>
Wed, 30 Jul 2025 18:05:38 +0000 (12:05 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 31 Jul 2025 16:08:44 +0000 (10:08 -0600)
I found a line in tuiterm.exp that causes Emacs paren-matching to go
awry.  This patch fixes the problem by changing some apparent nested
double quotes (which I think isn't really possible in Tcl but this
seems to be the intent) to be more correct; which fixes the Emacs
issue as well.

Approved-By: Tom de Vries <tdevries@suse.de>
gdb/testsuite/lib/tuiterm.exp

index cc8e852690add418f20ed37026154119171c4292..b83b8afdcecc5685d993538c56f95b75360c36d7 100644 (file)
@@ -1291,7 +1291,7 @@ namespace eval Term {
 
        for {set y 0} {$y < $_rows} {incr y} {
            set fmt [format %5d $y]
-           verbose -log "$fmt [get_line_1 $y "" $attrs]"
+           verbose -log "$fmt [get_line_1 $y {} $attrs]"
        }
     }