Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilities for Pair Tag Highlighter #926

Merged
merged 2 commits into from Jan 19, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions pairtaghighlighter/src/pair_tag_highlighter.c
Expand Up @@ -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);
Expand All @@ -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);
}
}
Expand Down