clean up edit_redraw() a bit
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2871 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
6a74c9224c
commit
e5806be519
|
@ -104,7 +104,7 @@ CVS code -
|
||||||
the "Replace" prompt. (DLR, found by Mike Frysinger)
|
the "Replace" prompt. (DLR, found by Mike Frysinger)
|
||||||
- Remove unnecessary renumber(). (DLR)
|
- Remove unnecessary renumber(). (DLR)
|
||||||
- winio.c:
|
- winio.c:
|
||||||
edit_scroll(), edit_refresh()
|
edit_scroll(), edit_redraw(), edit_refresh()
|
||||||
- Clean up and simplify. (DLR)
|
- Clean up and simplify. (DLR)
|
||||||
do_statusbar_next_word()
|
do_statusbar_next_word()
|
||||||
- Rework to be more like do_statusbar_prev_word(), to avoid a
|
- Rework to be more like do_statusbar_prev_word(), to avoid a
|
||||||
|
|
|
@ -3586,15 +3586,15 @@ void edit_redraw(const filestruct *old_current, size_t old_pww)
|
||||||
while (foo != openfile->current) {
|
while (foo != openfile->current) {
|
||||||
if (do_refresh)
|
if (do_refresh)
|
||||||
update_line(foo, 0);
|
update_line(foo, 0);
|
||||||
|
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
if (!openfile->mark_set)
|
if (!openfile->mark_set)
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
if (foo->lineno > openfile->current->lineno)
|
foo = (foo->lineno > openfile->current->lineno) ? foo->prev :
|
||||||
foo = foo->prev;
|
foo->next;
|
||||||
else
|
|
||||||
foo = foo->next;
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue