sandy

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

commit c13f718d6fe1971f53120b3cdcc10226f47ea231
parent 0eb78bb7e1ea05167c964d9f8db022db49138be6
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Wed,  6 Apr 2011 00:57:35 +0200

Add Ctrl-o binding, solved bug when saving an unmodified file
Diffstat:
sandy.1 | 3+++
sandy.c | 6++++--
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/sandy.1 b/sandy.1 @@ -101,6 +101,9 @@ Select full file. .B Ctrl\-g Cancel selection, or start selecting text manually. .TP +.B Ctrl\-o +Move to the opposite size of the selection, usually to change it. +.TP .B Meta\-i Toggle case (in)sensitive search. .SS Deleting diff --git a/sandy.c b/sandy.c @@ -394,15 +394,17 @@ f_save(const Arg *arg) { } if(i_writefile()) { - statusflags^=S_Modified; + statusflags&=~S_Modified; for(savestep=0,u=undos; u; u=u->prev, savestep++); } } void f_select(const Arg *arg) { - fsel=fcur; + Filepos tmppos=fcur; /* for f_select(m_tosel) */ + fcur=arg->m(fcur); + fsel=tmppos; if(t_sel()) statusflags|=S_Selecting; else