[Github-comments] [geany/geany] Track changes to navqueue positions as a document is edited (#1480)

Vasiliy Faronov notifications at xxxxx
Tue Apr 25 08:10:35 UTC 2017


(moved out of #1136)

1. Open a C source file with the following text:

   ```
   void foo(void)
   {
       printf("Hello world!\n");
   }
   
   void main()
   {
       foo();
   }
   ```

2. On line 8, Ctrl+click on `foo`. Geany navigates to line 1, the definition of `foo`.

3. Insert the following text at the beginning of the document:

   ```
   #include <stdio.h>
   
   ```

4. 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 or view it on GitHub:
https://github.com/geany/geany/issues/1480
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170425/6accab39/attachment.html>


More information about the Github-comments mailing list