I noticed that sometimes, maybe when moving a line down with alt+page_down, strange characters appear. I use geany 1.33 (built on 2018-04-16 with GTK 3.22.30, GLib 2.56.1) on Lubuntu 18.04.
I managed to take screenshots, with ctrl+z and ctrl+y I could look at the changes: After using ctrl+d to duplicate a line, I tried to move it down. ![2019-01-24-203800_1920x1080_scrot](https://user-images.githubusercontent.com/3192173/51752043-b7206100-20b6-11e...)
After pressing alt+page_down to move it down, it looked like this: ![2019-01-24-203802_1920x1080_scrot](https://user-images.githubusercontent.com/3192173/51752066-ce5f4e80-20b6-11e...)
I pressed alt+page_down multiple times and the characters changed: ![2019-01-24-203735_1920x1080_scrot](https://user-images.githubusercontent.com/3192173/51752101-e8009600-20b6-11e...)
I'm not sure if the steps I described above are correct as I can't remember such a sudden situation exactly.
I do not know how to reproduce this. Also, geany never crashed when it happened.
Can't reproduce on ``` 10:37:53: Geany INFO : Geany 1.35 (git >= 4452b36), en_AU.UTF-8 10:37:53: Geany INFO : GTK 3.18.9, GLib 2.48.2 ```
@HybridDog how big is your file? See #2076.
My file is quite small. I don't know if it's fixed in a newer version of geany; when I created the Issue, I thought that lubuntu 18.04 still has the newest stable version.
@HybridDog I don't suppose you can share your file for us to test with? Also what filetype is it?
The latest Geany release is 1.34.1 which came out well after 18.04.
I just reproduced this in a quite small patch file. I couldn't reproduce it twice, but it definitely happened to me a minute ago (1.35 ≥ c825b581b, GTK 3.24.4, GLib 2.58.2).
So, since I have never seen it, its an intermittent bug in GTKs newer than 3.18.9, that should be easy to find, not. :smiling_imp:
I don't suppose you can share your file for us to test with? Also what filetype is it?
It happens everywhere, not only with a specific file. I've also tried it with the default configuration for me, it still happened.
OK I should have noticed the OP edition (unfortunately mails don't show them…). Actually, it happens reliably (under with rectangular selection, or possibly any kind of non-stream selection. There's invalid memory manipulation inside Scintilla's `SCI_MOVESELECTEDLINESDOWN`/`UP`.
Forwarded: https://sourceforge.net/p/scintilla/bugs/2078/
Closed #2066 via d551765d59f0f92d5ffa68dba3f541f4c00c2c12.
Imported upstream fix. Now moving lines with a rectangular selection will not do anything. It's not perfect, but it way better than invalid memory access and messing up the buffer.
github-comments@lists.geany.org