On 08:52 Fri 28 Nov , Enno wrote: > Le vendredi 28 novembre 2014 14:33:25 UTC+1, LCD 47 a écrit : > > On 28 November 2014, itchyny <neknekneknek.ky...@gmail.com> wrote: > > > Bram, the <line1> is always 1 (probably after this patch). > > > > > > :command! Test echo <line1> > > > > > > try :Test and it always echoes 1. > > > > I don't think this is a relevant test. You need to pass "-range" > > when defining "Test" if you want it to handle ranges: > > > > :command! -range Test echo <line1> > > > > /lcd > > Most likely this patch also relates to the sudden problems occurring in Vim > versions higher than 7.4.514 discussed at > https://github.com/tomtom/tcomment_vim/issues/121
It is not. `:TCommand` is defined as command! -bar -bang -range -nargs=* -complete=customlist,tcomment#CompleteArgs TComment \ keepjumps call tcomment#Comment(<line1>, <line2>, 'G', "<bang>", <f-args>) and by default <line1> and <line2> are set to the current line (which I just checked that they are set correctly). I also test that it comments the current line with vim-529. My guess is that the implementation of `tcomment#Comment` must have change or before it was defined with `-range=1`. Regards, Marcin Szamotulski -- -- You received this message from the "vim_dev" 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature