[Github-comments] [geany/geany-plugins] vimode: Add special handling to include destination char for some commands (#1104)

Jiří Techet notifications at xxxxx
Wed Sep 1 19:51:42 UTC 2021


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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1104
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210901/10d4573b/attachment.htm>


More information about the Github-comments mailing list