sandy

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

commit 5093dcb351ee8b19ccd0277659e7d1178c6968ec
parent 48a5092d92d622753dc2c84371b756c468e6e199
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Mon, 29 Aug 2011 18:31:42 +0200

Slightly less annoying behavior when I make a typo.
Diffstat:
sandy.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sandy.c b/sandy.c @@ -347,7 +347,7 @@ f_insert(const Arg *arg) { i_addtoundo(newcur, arg->v); else { i_addundo(TRUE, fcur, newcur, strdup((char*)arg->v)); - fsel=(fcur.l == newcur.l ? fcur : newcur); + if(fcur.l!=newcur.l) fsel=newcur; } fcur=newcur; statusflags|=(S_Modified|S_GroupUndo);