[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 5e6393f: Use a square root character in calc displays
From: |
Lars Ingebrigtsen |
Subject: |
master 5e6393f: Use a square root character in calc displays |
Date: |
Tue, 15 Sep 2020 12:05:45 -0400 (EDT) |
branch: master
commit 5e6393fc61a2a2423038fb80288aef30626bdba7
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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
<zephyr.pellerin@gmail.com>.
---
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 0367c53..1f3ae84 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) " |")
'("\\|")))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 5e6393f: Use a square root character in calc displays,
Lars Ingebrigtsen <=