patch-1.3.96 linux/scripts/lxdialog/util.c

Next file: linux/CREDITS
Previous file: linux/scripts/lxdialog/menubox.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.95/linux/scripts/lxdialog/util.c linux/scripts/lxdialog/util.c
@@ -347,8 +347,8 @@
 	for (i = 0; i < strlen(string); i++) {
 		c = tolower(string[i]);
 
-		if (c == '(') ++in_paren;
-		if (c == ')') --in_paren;
+		if (strchr("<[(", c)) ++in_paren;
+		if (strchr(">])", c)) --in_paren;
 
 		if ((! in_paren) && isalpha(c) && 
 		     strchr(exempt, c) == 0)


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this