Matt Wozniski wrote:

> On Thu, Jul 8, 2010 at 5:55 PM, Benjamin R. Haskell wrote:
> > On Thu, 8 Jul 2010, Bram Moolenaar wrote:
> >> I'll make it so that synstack() works when on the character just after
> >> the end of the line. =A0It was already working for an empty line, thus
> >> should also work when just after the last character.
> >
> > Would it make sense to have it work on any character past the end of the
> > line? =A0I don't use 'virtualedit', but it seems like it'd make sense to
> > treat the situation similarly.
> 
> I agree that that would be better.  At the very least, it definitely
> should be returning a list, though - even if you don't want to make
> all characters after EOL give back the same list, they should at least
> give back an empty list.

No, if you give an invalid argument it doesn't return a list.
If you want a List, make sure you always pass a valid argument.

-- 
Linux is just like a wigwam: no Windows, no Gates and an Apache inside.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to