sandy

text editor
git clone git://git.suckless.org/sandy
Log | Files | Refs | README | LICENSE

commit ecd471e28ba6485ecbd0bfb35c09abd2016b59ec
parent 31f1a5730369987b26d9df02119237fa84c30f71
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Thu, 16 Jun 2011 00:58:39 +0200

Tiny optimization avoids reprinting when moving in the same line.
Diffstat:
sandy.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sandy.c b/sandy.c @@ -755,7 +755,7 @@ i_edit(void) { if(fsel.l != oldsel.l) i_dirtyrange(oldsel.l, fsel.l); else if(fsel.o != oldsel.o) fsel.l->dirty=TRUE; if(fcur.l != oldcur.l) i_dirtyrange(oldcur.l, fcur.l); - else if(fcur.o != oldcur.o) fcur.l->dirty=TRUE; + else if(fcur.o != oldcur.o && t_sel()) fcur.l->dirty=TRUE; oldsel=fsel, oldcur=fcur; i_update();