Re: Possible bug in 'operatorfunc', g@, and / combination

2007-08-27 Fir de Conversatie Nikolai Weibull
On 8/27/07, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > Nikolai Weibull wrote: > > So it seems that there's something strange going on in what line is > > being set for the ] mark when performing a search under these > > conditions, coupled with patterns that match at the very beginning of > > a

Re: Possible bug in 'operatorfunc', g@, and / combination

2007-08-27 Fir de Conversatie Bram Moolenaar
Nikolai Weibull wrote: > I have the following function and binding: > > noremap g: :set operatorfunc=get_command_mode_rangeg@ > > function! s:get_command_mode_range(type) > let b = line("'[") > let e = line("']") > > if b < e > let range = '.,+' . (e - b) > elseif b == e > le

Possible bug in 'operatorfunc', g@, and / combination

2007-08-27 Fir de Conversatie Nikolai Weibull
I have the following function and binding: noremap g: :set operatorfunc=get_command_mode_rangeg@ function! s:get_command_mode_range(type) let b = line("'[") let e = line("']") if b < e let range = '.,+' . (e - b) elseif b == e let range = '.' else let range = '.,+' . (b -