[geany/geany-plugins] e3d7f3: jump on 0 line if not selecting

Sagar Chalise git-noreply at xxxxx
Sun Jan 19 09:00:13 UTC 2020


Branch:      refs/heads/master
Author:      Sagar Chalise <chalisesagar at gmail.com>
Committer:   Sagar Chalise <chalisesagar at gmail.com>
Date:        Tue, 15 Oct 2019 14:10:56 UTC
Commit:      e3d7f37ecb5bf394f329b7f94ff86aabac45ba32
             https://github.com/geany/geany-plugins/commit/e3d7f37ecb5bf394f329b7f94ff86aabac45ba32

Log Message:
-----------
jump on 0 line if not selecting


Modified Paths:
--------------
    pairtaghighlighter/src/pair_tag_highlighter.c

Modified: pairtaghighlighter/src/pair_tag_highlighter.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -411,7 +411,7 @@ static void
 select_or_match_tag (gboolean select)
 {
     gint cur_line;
-    gint jump_line=0, select_start=0, select_end=0;
+    gint jump_line=-5, select_start=0, select_end=0;
     GeanyDocument *doc = document_get_current();
     if(highlightedBrackets[0] != highlightedBrackets[2]){
         cur_line = sci_get_current_position(doc->editor->sci);
@@ -434,7 +434,7 @@ select_or_match_tag (gboolean select)
         sci_set_selection_start(doc->editor->sci, select_start);
         sci_set_selection_end(doc->editor->sci, select_end);
     }
-    if(!select && jump_line != 0){
+    else if (jump_line >= 0){
         sci_set_current_position(doc->editor->sci, jump_line, TRUE);
     }
 }



--------------
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