Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Duplicate only current line when cursor is at the end of the line (#649)
This fixes issue #643. When cursor is at the end of the line, old version would duplicate two lines: The line where the cursor is, and the line following it. This happened because the buffer that is being copied would include both lines and the newline separating them. This fix checks if there are multiple lines in the current buffer, and if so, moves buffers end iterator to the newline character, so that only the line where cursor is located is duplicated.
- Loading branch information