[Github-comments] [geany] If more tags are found during tag definition/declaration goto, let user select which one to use (#406)
Colomban Wendling
notifications at xxxxx
Sat Feb 13 22:00:36 UTC 2016
> @@ -1953,10 +2158,34 @@ static gboolean goto_tag(const gchar *name, gboolean definition)
> new_doc = document_open_file(tmtag->file->file_name, FALSE, NULL, NULL);
> }
>
> - if (navqueue_goto_line(old_doc, new_doc, tmtag->line))
> - return TRUE;
> + if (!swapped && navqueue_goto_line(old_doc, new_doc, tmtag->line))
couldn't it simply use `found`, and drop the whole `swapped` variable?
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/406/files#r52834262
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160213/d3367f24/attachment.html>
More information about the Github-comments
mailing list