[Geany-devel] Problem with setting position in document after reloading

Jiří Techet techet at xxxxx
Mon Jul 12 22:32:08 UTC 2010

On Mon, Jul 12, 2010 at 14:49, Nick Treleaven
<nick.treleaven at btinternet.com> wrote:
> On Sat, 10 Jul 2010 01:57:27 +0200
> Jiří Techet <techet at gmail.com> wrote:
>> There's one more problem related to wrong cursor position. After
>> updating to Scintilla 2.12 (also bisected) when a file is opened from
>> a message window at certain line (e.g. by clicking at ./foo.c:80:
>> resulting from find in files) the document position is different when
>> the file is loaded for the first time (the first click in the message
>> window) from the position when the document is reloaded for the second
>> time (the second click in the message window). This is possibly just a
>> Scintilla 2.12 bug but might be also related to the above bug (why
>> does the editor behave differently when the document is opened for the
>> first time from the case when it's (re)opened for the second time?).
>> Also it happened to me several times that when I opened a file by
>> clicking a result of FIF in the message window, the found line was
>> below the current viewport. I haven't encountered this recently so
>> maybe it has been fixed in the meantime, just reporting it for
>> completeness.
> I haven't looked at the selection issue yet, but the quoted problems
> above may be fixed:
> Revision: 5098
>          http://geany.svn.sourceforge.net/geany/?rev=5098&view=rev
> Author:   ntrel
> Date:     2010-07-09 12:12:23 +0000 (Fri, 09 Jul 2010)
> Log Message:
> -----------
> Fix scrolling the editor line in view after loading a session and
> switching document tabs. Note this causes repainting so needs
> improvement.

Perfect! Both problems seem to be fixed. Thanks!

There is just one minor thing (which I'm not sure if it's a bug or
feature, for me it's rather a bug). After document load the cursor is
placed on the 15th line from the top or so. This is fine when the
document is loaded for the first time but I don't like it when the
document is reloaded - the view just jumps somewhere depending on your
cursor's position, which is disturbing. I would prefer if after the
document reload the view didn't move at all. But again, maybe this is
a feature, just my opinion...



> Regards,
> Nick
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel

More information about the Devel mailing list