summary refs log tree commit diff
path: root/Src/Zle/compresult.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2022-04-04 15:34:40 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2022-04-05 09:40:07 +0100
commit02747bbbd37d81a2a2fff938e1cc94fb73980848 (patch)
tree824edbaf1a053da5e2e745a828b0c21a04b439cd /Src/Zle/compresult.c
parent0d9c2422bf3815ee04e5c1b562a22b9df56c07ed (diff)
downloadzsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.tar.gz
zsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.tar.xz
zsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.zip
49989: Single byte versions of nice quoting.
Align interfaces for "nice" printing of characters with those for
multibyte to make more available in single-byte compilation.
Diffstat (limited to 'Src/Zle/compresult.c')
-rw-r--r--Src/Zle/compresult.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index 0fed297b5..57789c0f3 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -2248,15 +2248,13 @@ iprintm(Cmgroup g, Cmatch *mp, UNUSED(int mc), UNUSED(int ml), int lastc, int wi
 #ifdef MULTIBYTE_SUPPORT
 	len = mb_niceformat(m->disp, shout, NULL, 0);
 #else
-	nicezputs(m->disp, shout);
-	len = niceztrlen(m->disp);
+	len = sb_niceformat(m->disp, shout, NULL, 0);
 #endif
     } else {
 #ifdef MULTIBYTE_SUPPORT
 	len = mb_niceformat(m->str, shout, NULL, 0);
 #else
-	nicezputs(m->str, shout);
-	len = niceztrlen(m->str);
+	len = sb_niceformat(m->str, shout, NULL, 0);
 #endif
 
 	if ((g->flags & CGF_FILES) && m->modec) {