Ahh, apparently it does collapse backwards as well. I probably had a hard
tab behind the cursor in my initial test case, which would explain why it
didn't get collapsed.
-Kevin Ballard

On Sat, Mar 21, 2009 at 5:40 PM, <[email protected]> wrote:

>
> I intended justOneSep to handle full collapse of spacing, both
> forwards and backwards, and it seems to work that way for my tests.
> Do you have a sample where this isn't working?
>
> Thanks for the update on the tabs... I had assumed that
> Data.Char.isSeparator would have returned true for tabs, but in
> testing I can confirm that this isn't the case, so I'll send an update
> soon.
>
> -KQ
>
> On Mar 21, 2:44 pm, Kevin Ballard <[email protected]> wrote:
> > justOneSep doesn't match Emacs's just-one-space function. justOneSep only
> > deletes spaces going forward, but just-one-space not only also deletes
> tabs,
> > it checks backwards as well, so it deletes all spaces/tabs around the
> cursor
> > to leave only a single space.
> >
> > On Fri, Mar 20, 2009 at 2:27 PM, Jean-Philippe Bernardy <
> >
> > [email protected]> wrote:
> >
> > > Fri Mar 20 01:31:17 EDT 2009  [email protected]
> > >  * Added Buffer (unitSep, unitSepThisLine, doIfCharB) and justOneSep
> action
> > >  Ignore-this: f2646f12922eec462668d33d49721a21
> >
> > >    M ./Yi/Buffer/Normal.hs -1 +20
> > >    M ./Yi/Keymap/Emacs.hs +2
> > >    M ./Yi/Keymap/Emacs/Utils.hs +11
> >
> > --
> > Kevin Ballardhttp://kevin.sb.org
> > [email protected]
> >
>


-- 
Kevin Ballard
http://kevin.sb.org
[email protected]

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to