diff options
author | Ron Yorston <rmy@pobox.com> | 2021-08-21 14:03:55 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-08-22 00:09:57 +0200 |
commit | 74c4f356aee9c64978a881e5760055d0e3510a6a (patch) | |
tree | aac8d2936542b32caabed72f493d82a53b003369 /libpwdgrp | |
parent | 08ad934ac4e341c35497497f4d617a514de524a1 (diff) |
vi: code shrink print_literal()
Simplify the function print_literal() which is used to format a
string that may contain unprintable characters or control
characters.
- Unprintable characters were being displayed in normal text rather
than the bold used for the rest of the message. This doesn't seem
particularly helpful and it upsets the calculation of the width
of the message in show_status_line(). Use '?' rather than '.' for
unprintable characters.
- Newlines in the string were displayed as both '^J' and '$', which
is somewhat redundant.
function old new delta
not_implemented 199 108 -91
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-91) Total: -91 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libpwdgrp')
0 files changed, 0 insertions, 0 deletions