Skip to content

Instantly share code, notes, and snippets.

@sirneb
Created March 22, 2011 05:19
Show Gist options
  • Save sirneb/880816 to your computer and use it in GitHub Desktop.
Save sirneb/880816 to your computer and use it in GitHub Desktop.
--- /home/rafal/Development/gmate-gmate-9c855f8/plugins/gemini.py 2011-02-01 16:25:19.312728001 +0100
+++ gemini.py 2011-02-01 20:42:58.106625001 +0100
@@ -54,17 +54,11 @@
end_keyvals = [34, 39, 96, 41, 93, 125]
twin_start = ['"',"'",'`','(','[','{']
twin_end = ['"',"'",'`',')',']','}']
- toggle = False
def __init__(self):
return
def key_press_handler(self, view, event):
- if self.toggle:
- self.toggle = False
- return
- else:
- self.toggle = True
buf = view.get_buffer()
cursor_mark = buf.get_insert()
cursor_iter = buf.get_iter_at_mark(cursor_mark)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment