From f5fa982ecbb629e91af0948c38be40664391f701 Mon Sep 17 00:00:00 2001 From: Dan Kaplun Date: Sun, 3 Jan 2016 01:12:42 -0500 Subject: [PATCH] refactor(insertMode): move keybinding for insert mode to editor-widget --- lib/ui/EditorPane.js | 2 +- lib/ui/Slap.js | 1 - slap.ini | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ui/EditorPane.js b/lib/ui/EditorPane.js index dff5ae4..890431e 100644 --- a/lib/ui/EditorPane.js +++ b/lib/ui/EditorPane.js @@ -102,7 +102,7 @@ EditorPane.prototype._initHandlers = function () { if (!formHasFocus && visibleForms.length) visibleForms[0].focus(); }); - editor.on('insertMode', function () { slap.header.render(); }); + editor.on('insertMode', function () { self.screen.render(); }); ['onDidChange', 'onDidChangePath'].forEach(function (prop) { editor.textBuf[prop](function () { slap.header.render(); diff --git a/lib/ui/Slap.js b/lib/ui/Slap.js index ffd13a6..929ebc6 100644 --- a/lib/ui/Slap.js +++ b/lib/ui/Slap.js @@ -160,7 +160,6 @@ Slap.prototype._initHandlers = function () { pane.editor._updateContent(); }); return false; - case 'toggleInsertMode': self.toggleInsertMode(); return false; case 'quit': if (!self._panesBlockingQuit) { var currentPane = self.getCurrentPane(); diff --git a/slap.ini b/slap.ini index e82f924..9885e10 100644 --- a/slap.ini +++ b/slap.ini @@ -25,7 +25,6 @@ nextPane = "C-M-pagedown" prevPane = "C-M-pageup" togglePaneList = "C-l" toggleFileBrowser = "f10" -toggleInsertMode = "insert" quit = "C-q" help = "f2"