From 5e6393fc61a2a2423038fb80288aef30626bdba7 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 15 Sep 2020 18:03:50 +0200 Subject: [PATCH] Use a square root character in calc displays * lisp/calc/calccomp.el (math-compose-sqrt): Use a square root character, if possible (bug#22919). Suggested by Zephyr Pellerin . --- lisp/calc/calccomp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/calc/calccomp.el b/lisp/calc/calccomp.el index 0367c537b5a..1f3ae842638 100644 --- a/lisp/calc/calccomp.el +++ b/lisp/calc/calccomp.el @@ -1018,7 +1018,8 @@ (make-string (+ w 2) ?\_)) (list 'horiz (if (= h 1) - "V" + (if (char-displayable-p ?√) + "√" "V") (append (list 'vleft (1- a)) (make-list (1- h) " |") '("\\|"))) -- 2.39.5