Skip to content

Commit

Permalink
Disable blinking matching parenthesis if < 0, fixes #216
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 24, 2018
1 parent 1ce3880 commit f23d15f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1922,13 +1922,18 @@ protected boolean insertCloseSquare() {
protected boolean insertClose(String s) {
putString(s);

long blink = getLong(BLINK_MATCHING_PAREN, DEFAULT_BLINK_MATCHING_PAREN);
if (blink <= 0) {
return true;
}

int closePosition = buf.cursor();

buf.move(-1);
doViMatchBracket();
redisplay();

peekCharacter(getLong(BLINK_MATCHING_PAREN, DEFAULT_BLINK_MATCHING_PAREN));
peekCharacter(blink);

buf.cursor(closePosition);
return true;
Expand Down

0 comments on commit f23d15f

Please sign in to comment.