Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dt not correct behaviour #1052

Closed
howdev opened this issue Dec 28, 2020 · 0 comments · Fixed by #1104
Closed

dt not correct behaviour #1052

howdev opened this issue Dec 28, 2020 · 0 comments · Fixed by #1104
Assignees

Comments

@howdev
Copy link

howdev commented Dec 28, 2020

version 1.37 vim mode
abcde;
dt to ; result should be ; not e;

techee added a commit to techee/geany-plugins that referenced this issue Sep 1, 2021
…mands

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 geany#1052.
@techee techee self-assigned this Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants