nano

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

commit b2cd10d57ca78b9b4700a7143111243bed0d6e29
parent 9963b0e8859677bfd1f79ea919006e8365c2fd93
Author: Chris Allegretta <chrisa@asty.org>
Date:   Sun, 20 Jan 2002 00:54:42 +0000

- nano.c:do_char() - Run edit_refresh() if ENABLE_COLOR is defined so adding multi-liners will update (e.g. /* in C)


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1027 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 3+++
Mnano.c | 4++++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -26,6 +26,9 @@ CVS code - main() - Check that alt value is an alpha char before comparing to val - 32, fixes Alt-R calling doprev instead of replace. + do_char() + - Run edit_refresh() if ENABLE_COLOR is defined so adding + multi-liners will update (e.g. /* in C). do_suspend() - Call tcsetattr() to restore the old terminal settings, so tcsh can use ^C after suspend for example (fixes BUG #68). diff --git a/nano.c b/nano.c @@ -685,6 +685,10 @@ void do_char(char ch) current->data[current_x] = ch; do_right(); +#ifdef ENABLE_COLOR + edit_refresh(); +#endif + #ifndef DISABLE_WRAPPING if (!ISSET(NO_WRAP) && (ch != '\t')) check_wrap(current, ch);