[geany/geany-plugins] a2fd9d: addons: support for URI's containing ~ and +

glitsj16 git-noreply at xxxxx
Fri Jun 19 15:11:09 UTC 2015


Branch:      refs/heads/master
Author:      glitsj16 <glitsj16 at users.noreply.github.com>
Committer:   glitsj16 <glitsj16 at users.noreply.github.com>
Date:        Fri, 19 Jun 2015 15:11:09 UTC
Commit:      a2fd9d65445bd0ce0be437d4509c1fe10d2b61ab
             https://github.com/geany/geany-plugins/commit/a2fd9d65445bd0ce0be437d4509c1fe10d2b61ab

Log Message:
-----------
addons: support for URI's containing ~ and +

Current word selection fails on URI's containing ~ and/or + (like launchpad PPA's). Adding ~ and + to GEANY_WORDCHARS fixes this.


Modified Paths:
--------------
    addons/src/ao_openuri.c

Modified: addons/src/ao_openuri.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -250,7 +250,7 @@ void ao_open_uri_update_menu(AoOpenUri *openuri, GeanyDocument *doc, gint pos)
 		sci_get_selected_text(doc->editor->sci, text);
 	}
 	else
-		text = editor_get_word_at_pos(doc->editor, pos, GEANY_WORDCHARS"@.://-?&%#=");
+		text = editor_get_word_at_pos(doc->editor, pos, GEANY_WORDCHARS"@.://-?&%#=~+");
 
 	/* TODO be more restrictive when handling selections as there are too many hits by now */
 	if (text != NULL && (ao_uri_has_scheme(text) || ao_uri_is_link(text)))



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list