Made a really odd mistake earlier: when dealing with counted mappings, we want the mapping itself (not the command that was mapped) to be counted. For some reason, I set m_countTemp to 1 in order to achieve this, which still meant that the command was technically counted (so, for example, '%' would mean 'go to position 1 percent through file' rather than 'go to matching item'). Set m_countTemp to 0 instead, and add regression test.
author Simon St James
()
committer Simon St James
()
commit 54c7d34096f23b42fb1e9696cdfeeb64af6eb152
tree fa78d61f4e1d90aa0fd014f70e51dc24faa5b141
parent e09065ac9f06d105de05953b3b5471ce708dfd58
Made a really odd mistake earlier: when dealing with counted mappings, we want the mapping itself (not the command that was mapped) to be counted. For some reason, I set m_countTemp to 1 in order to achieve this, which still meant that the command was technically counted (so, for example, '%' would mean 'go to position 1 percent through file' rather than 'go to matching item'). Set m_countTemp to 0 instead, and add regression test.
part/vimode/katevinormalmode.cpp
tests/vimode_test.cpp