For
abcde;
simple 't;' does the right thing and places the cursor on top of character 'e' just before ';'. However, for composed commands such as 'dt;', vim also deletes the character 'e' which vimode currently doesn't.
Vim behaves in a bit inconsistent way regarding this behavior - while for 'dw' (delete all until next word) it doesn't delete the first character of the next word onto which the cursor is placed, for 'de' (delete until next word end) it includes the final character of the deleted word. This behavior makes sense from the use case point of view but makes handling of such situations inconsistent.
This patch lists functions which behave this way and includes the destination character to the selection.
Fixes #1052. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/1104
-- Commit Summary --
* vimode: Add special handling to include destination char for some commands
-- File Changes --
M vimode/src/cmd-runner.c (24)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/1104.patch https://github.com/geany/geany-plugins/pull/1104.diff