targets.vim icon indicating copy to clipboard operation
targets.vim copied to clipboard

dot-repeat echoes sometimes ':call targets#do()'

Open astier opened this issue 1 year ago • 0 comments

Sometimes but not always repeating an operation on a targets-object with . prints the message :call targets#do() for a couple milliseconds. This is not a deal-breaker but a little bit annoying. Could it be made silent for example by using <cmd>call targets#do()<cr>?

An example would be:

  1. Open a file with the following content (* is the cursor-position):
'f*oo'
'foo'
'foo'
'foo'
'foo'
'foo'
'foo'
'foo'
'foo'
  1. ciqbar to change 'foo' to 'bar'
  2. j to move cursor one line down on the next 'foo'
  3. press . to repeat the last action and to replace 'foo' with 'bar' again
  4. repeat step 3 & 4

Occasionally but not always pressing . will echo :call targets#do() in the cmdline for a couple milliseconds.

astier avatar Mar 16 '23 10:03 astier