#884275 gedit-plugin-bracket-completion: gedit plugin bracket-completion causes lag in text input

Package:
gedit-plugin-bracket-completion
Source:
gedit-plugins
Description:
Bracket Completion plugin for gedit
Submitter:
Furquan Ahmad
Date:
2017-12-13 08:09:05 UTC
Severity:
important
#884275#5
Date:
2017-12-13 08:06:41 UTC
From:
To:
Dear Maintainer,

When using the gedit plugin 'bracket-completion' text input will occasionally
slow down to the point that restarting the text-editor is the only way to
continue editing the text. This problem occurs when the bracket-completion
plugin is active and completable characters are entered in the editor
(backticks or parantheses for example).

The following messages can be seen repeated over and over when gedit is
launched from a terminal and the problem is triggered:

Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/bracketcompletion.py", line 268, in on_event_after
    word, start, end = self.get_current_token()
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/bracketcompletion.py", line 144, in get_current_token
    word = self._doc.get_text(start, end)
TypeError: Gtk.TextBuffer.get_text() takes exactly 4 arguments (3 given)