nano

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

commit 252bb600364f63ba230c02f0304afdea76a48d7f
parent 6d34b8a5cd2840df9792b0537a97b7c6c211716a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 12 Feb 2019 16:16:29 +0100

display: highlight the ">"/"<" continuation characters in reverse video

To make it obvious that they are not actual characters in the file.

The default highlighting is in reverse video, but this can be changed
to bold by using --bold or 'set boldtext'.

This fulfills https://savannah.gnu.org/bugs/?55571.

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

diff --git a/src/winio.c b/src/winio.c @@ -2776,10 +2776,16 @@ int update_line(filestruct *fileptr, size_t index) edit_draw(fileptr, converted, row, from_col); free(converted); - if (from_col > 0) + if (from_col > 0) { + wattron(edit, hilite_attribute); mvwaddch(edit, row, margin, '<'); - if (strlenpt(fileptr->data) > from_col + editwincols) + wattroff(edit, hilite_attribute); + } + if (strlenpt(fileptr->data) > from_col + editwincols) { + wattron(edit, hilite_attribute); mvwaddch(edit, row, COLS - 1, '>'); + wattroff(edit, hilite_attribute); + } if (spotlighted && !inhelp) spotlight(light_from_col, light_to_col);