Geany dev
Functions
navqueue.h File Reference

Simple code navigation. More...

Functions

gboolean navqueue_goto_line (GeanyDocument *old_doc, GeanyDocument *new_doc, gint line)
 Adds old file position and new file position to the navqueue, then goes to the new position. More...
 

Detailed Description

Simple code navigation.

Function Documentation

◆ navqueue_goto_line()

gboolean navqueue_goto_line ( GeanyDocument old_doc,
GeanyDocument new_doc,
gint  line 
)

Adds old file position and new file position to the navqueue, then goes to the new position.

Parameters
old_docThe document of the previous position, if set as invalid (NULL) then no old position is set
new_docThe document of the new position, must be valid.
linethe line number of the new position. It is counted with 1 as the first line, not 0.
Returns
TRUE if the cursor has changed the position to line or FALSE otherwise.