(moved out of #1136)
Open a C source file with the following text:
void foo(void)
{
printf("Hello world!\n");
}
void main()
{
foo();
}
On line 8, Ctrl+click on foo
. Geany navigates to line 1, the definition of foo
.
Insert the following text at the beginning of the document:
#include <stdio.h>
Invoke “Navigate back a location” (with the toolbar button or the keybinding).
Expected result: Geany navigates to line 10, which now contains the call to foo
from which we jumped to the definition of foo
.
Actual result: Geany navigates to line 8, because positions in the navqueue were not updated when extra text was inserted at the beginning of the document.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.