andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Copy-pasting lines works bad with CR+LF EOLs on QScintilla #93

Closed vi closed 11 years ago

vi commented 11 years ago

I have

a
b
c

in buffer, I position cursor on line "b". I press Alt+C, then Alt+V. I get:

a
b
cb
vi commented 11 years ago

On Enki version 853474d22902ec079aa44611644018d445426418 working on Windows it also fails.

andreikop commented 11 years ago

Does it fail for you ONLY on Windows, or on Linux too? Works for me on Linux.

Please go to qutepart/tests/ and execute python.exe test_api.py. Paste the output.

vi commented 11 years ago

Looks like with qutepart enki it works well.

With old enki (both on linux and Windows; I haven't yet bothered to configure qutepart on Windows) it fails.

andreikop commented 11 years ago

OK. I will not probably release any bug fix releases for old Enki.

vi commented 11 years ago

If it is easy to backport a fix (i.e. there is dedicated commit for it and it can be applied to old enki), better do it (and in general create "legacy" branch for it). If it is tricky (requires additional code to be written) then it can wait.

andreikop commented 11 years ago

I think fix is easy, but, I don't have Windows to investigate this bug.

vi commented 11 years ago

It works and is reproducible (on Enki 12.08.5) in GNU/Linux too. You can create such file, for example, using printf "qqq\r\nwww\r\neee\r\n" > file.txt.

andreikop commented 11 years ago

QScintilla has gone