tpope / vim-repeat

repeat.vim: enable repeating supported plugin maps with "."
http://www.vim.org/scripts/script.php?script_id=2136
2.59k stars 81 forks source link

repeat has stopped handling speeddating correctly #45

Closed chiphogg closed 9 years ago

chiphogg commented 9 years ago

Ever since ad89be240fe2eb78cd7e5ff47293faa548c03ee8, vim-speeddating repetition is broken. Here's how to reproduce.

  1. In a new buffer, enter 2015-04-01.
  2. Go to the end of this string, and type 7<C-A> to increment this date by one week. (Current text: 2015-04-08.)
  3. Type . to repeat the previous command. The expected result is that the text reads 2015-04-15; instead, it reads 2015-04-09 (incrementing by one day instead of 7).

    Additionally, a count of 7 is pending (which you can see if 'showcmd' is active). Looks like things got a bit out of order?

tpope commented 9 years ago

Given that commit is nothing but version checks, maybe consider sharing your actual version?

chiphogg commented 9 years ago

Maybe you were a little hasty when you checked it? That commit isn't just version checks; it also changes an option passed to feedkeys().

I was careful and thorough with my bug report. The correct behaviour occurs with the previous commit, but the incorrect behaviour occurs starting with this commit.

wellle commented 9 years ago

I can reproduce the bug. I will try to look into it by the end of the week.

chiphogg commented 9 years ago

Thanks for looking into it!

justinmk commented 9 years ago

I noticed this same problem ([count]{operation} followed by . repeat only repeats once) after ad89be2 with https://github.com/justinmk/vim-sneak.

wellle commented 9 years ago

Should be fixed with #46. Thanks for pinging me :+1: