[Github-comments] [geany/geany] Ctrl-D duplicating too much text (#1075)

Colomban Wendling notifications at xxxxx
Thu Jun 16 14:50:56 UTC 2016


It's actually a feature that <kbd>Ctrl+D</kbd> duplicates whole lines when more than one is selected.  Your first before/after duplicating exactly one line is also expected, because you actually only selected 1 whole line, nothing on the next.  You selected `ABC\n` (e.g. the line contents and the line ending character), so only 1 line, hence it duplicates that line only.  In your first example it duplicated the 2 lines because you selected more than one line.

If there is a bug here, it is that when a line doesn't end with a newline (like in your first unexpected example) it doesn't add such a new line and simply duplicates the range (missing the newline), leading to the lines combining as in your example.  This does not happen if there's a newline character at the end of the line.

---
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/issues/1075#issuecomment-226508846
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160616/7131ee8a/attachment.html>


More information about the Github-comments mailing list