From 2b10c2071ffffcc2841b0c6265d0155d739904cd Mon Sep 17 00:00:00 2001 From: Ryan Griffith Date: Mon, 9 Dec 2013 10:04:38 -0500 Subject: [PATCH] Check for possible snippet expansion before attempting to proceed to the next tabstop. --- lib/ace/snippets.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ace/snippets.js b/lib/ace/snippets.js index d061dbba..ee1a5498 100644 --- a/lib/ace/snippets.js +++ b/lib/ace/snippets.js @@ -809,6 +809,10 @@ var TabstopManager = function(editor) { this.keyboardHandler = new HashHandler(); this.keyboardHandler.bindKeys({ "Tab": function(ed) { + if (exports.snippetManager && exports.snippetManager.expandWithTab(ed)) { + return; + } + ed.tabstopManager.tabNext(1); }, "Shift-Tab": function(ed) {