nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 407f2d5bcfafac5662bb3e3e8520de619174d07e
parent 61e8b3d5424f8ce5d780a8b027096240cab572e9
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 17 Feb 2017 12:01:25 +0100

tweaks: move a comment and rewrap a line

Diffstat:
Msrc/winio.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -1832,10 +1832,10 @@ char *display_string(const char *buf, size_t start_col, size_t span, #endif buf += start_index; - if (*buf != '\0' && *buf != '\t' && - (column < start_col || (isdata && !ISSET(SOFTWRAP) && column > 0))) { - /* We don't display the complete first character as it starts to - * the left of the screen. */ + /* If the first character starts before the left edge, or would be + * overwritten by a "$" token, then show spaces instead. */ + if (*buf != '\0' && *buf != '\t' && (column < start_col || + (column > 0 && isdata && !ISSET(SOFTWRAP)))) { if (is_cntrl_mbchar(buf)) { if (column < start_col) { converted[index++] = control_mbrep(buf, isdata);