Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-09

Editor doesn't scroll horizontally - no scrollbar

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I see this bug quite frequently in my Linux version of Lazarus. Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2

I can't remember ever seeing it under FreeBSD, where Lazarus IDE also uses LCL-GTK2.

Anyway. I'm in the editor, and have a long line of code that goes off the screen to the right. I press END, and my cursor is off the screen, but the editor never scrolled horizontally. There is no horizontal scrollbar either. I can still scroll vertically though.

The only way to fix this is to restart Lazarus IDE. I can't reproduce this bug on demand, but I do experience this bug about 3-5 times per day. I've tried to do a clean rebuild of Lazarus IDE, but that did not resolve the issue.

Anybody else experienced this bug?

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

denisgolovan
to Graeme Geldenhuys

09.09.2016, 11:34, "Graeme Geldenhuys" :

Show quoted text 22 lines
Hi, I see this bug quite frequently in my Linux version of Lazarus.   Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 I can't remember ever seeing it under FreeBSD, where Lazarus IDE also uses LCL-GTK2. Anyway. I'm in the editor, and have a long line of code that goes off the screen to the right. I press END, and my cursor is off the screen, but the editor never scrolled horizontally. There is no horizontal scrollbar either. I can still scroll vertically though. The only way to fix this is to restart Lazarus IDE. I can't reproduce this bug on demand, but I do experience this bug about 3-5 times per day. I've tried to do a clean rebuild of Lazarus IDE, but that did not resolve the issue. Anybody else experienced this bug? Regards,   Graeme

Hi Graeme

Not sure if it's the same bug, but I frequently experience following Lazarus behavior. Also Linux version under GTK2.

Suddenly cursor in editor disappears and I can't return it back. Sometimes switching tabs back and forth helps, sometimes not. Looks like SynEdit bug.

Regards, Denis Golovan

Reply by email

Martin Frb
to Graeme Geldenhuys: I see this bug quite frequently in my Linux version of Lazarus. Lazarus 1.7 r52715 FPC…
Graeme Geldenhuys wrote 20 lines
Hi, I see this bug quite frequently in my Linux version of Lazarus. Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 I can't remember ever seeing it under FreeBSD, where Lazarus IDE also uses LCL-GTK2. Anyway. I'm in the editor, and have a long line of code that goes off the screen to the right. I press END, and my cursor is off the screen, but the editor never scrolled horizontally. There is no horizontal scrollbar either. I can still scroll vertically though. The only way to fix this is to restart Lazarus IDE. I can't reproduce this bug on demand, but I do experience this bug about 3-5 times per day. I've tried to do a clean rebuild of Lazarus IDE, but that did not resolve the issue. Anybody else experienced this bug?

I have seen it once (a few month back) on windows. Not sure what causes it (or if it is a new issue).

IIRC some edit action on some line worked around it. (edit the longest line, or temporarily append to a line to make it longest)

If you get it frequently put some debugln into unit SynEditTextTabExpander
function TSynEditStringTabExpander.GetLengthOfLongestLine: integer;

above the "try" block
if blockif Line2>=Line1 then
debugln(['TSynEditStringTabExpander.GetLengthOfLongestLine ', FIndexOfLongestLine,': ', Result, ' / ', FFirstUnknownLongestLine,'-', FLastUnknownLongestLine, ' / ', Line1,'-',Line2]);

when it happens, copy the tail of the output (there may be a lot of output before).

Also note which line you are on, what length the current line is, and if the current line is the longest line. (and what the longest line is)

Reply by email