fix(cli): force less to process ansi codes
I'm not certain how portable -r is for less. Fingers crossed! Fix: #6488
This commit is contained in:
parent
9f2d6262e5
commit
b63b209dd3
1 changed files with 3 additions and 1 deletions
|
@ -1179,7 +1179,9 @@ ARGS are options passed to less. If DOOMPAGER is set, ARGS are ignored."
|
|||
(set-file-modes tmpfile #o600)
|
||||
(doom-cli--restart
|
||||
(format "${DOOMPAGER:-less %s} <%s; rm -f%s %s"
|
||||
(combine-and-quote-strings (or args '("+g")))
|
||||
(combine-and-quote-strings
|
||||
(append (if doom-print-backend '("-r")) ; process ANSI codes
|
||||
(or (delq nil args) '("+g"))))
|
||||
(shell-quote-argument tmpfile)
|
||||
(if doom-debug-p "v" "")
|
||||
(shell-quote-argument tmpfile))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue