Commit b2cd10d5 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

- nano.c:do_char() - Run edit_refresh() if ENABLE_COLOR is defined so adding...

- 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
No related merge requests found
Showing with 7 additions and 0 deletions
+7 -0
......@@ -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).
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment