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"