1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-02-26 14:46:00 +01:00

Putting text that was yanked from the last line didn't always have the newline inserted.

This commit is contained in:
rmaddy 2004-01-30 19:36:15 +00:00
parent 6081d7cff5
commit 297c05041d
2 changed files with 5 additions and 1 deletions
docs
src/com/maddyhome/idea/vim/group

View File

@ -1,7 +1,6 @@
Bugs to fix:
- Replace mode - fix cursor. Can't figure out how to keep block cursor.
- Yanking/putting on last line of file not quite right.
- Repeating (via .) the O command affects prior line of text.
Requested Functionality to add:

View File

@ -130,6 +130,11 @@ public class RegisterGroup extends AbstractActionGroup
end = t;
}
if (type == Command.FLAG_MOT_LINEWISE && text.length() > 0 && text.charAt(text.length() - 1) != '\n')
{
text = text + '\n';
}
// If this is an uppercase register, we need to append the text to the corresponding lowercase register
if (Character.isUpperCase(register))
{