From 3c203e5563e29624018f1dcd1581f1aa1fdb53c7 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sat, 1 Mar 2008 00:12:07 +0000 Subject: [PATCH] fixed :js < go 10 lines down) if (/^[1-9][0-9]*$/.test(vimperator.input.buffer + key)) { @@ -1288,7 +1287,10 @@ vimperator.Events = function () //{{{ stop = false; if (vimperator.mode == vimperator.modes.COMMAND_LINE) - vimperator.commandline.onEvent(event); // reroute event in command line mode + { + if (!(vimperator.modes.extended & vimperator.modes.INPUT_MULTILINE)) + vimperator.commandline.onEvent(event); // reroute event in command line mode + } else if (vimperator.mode != vimperator.modes.INSERT) vimperator.beep(); } diff --git a/content/ui.js b/content/ui.js index 1b44a47d..3cbe0304 100644 --- a/content/ui.js +++ b/content/ui.js @@ -727,6 +727,7 @@ vimperator.CommandLine = function () //{{{ if (event.type == "keypress") { var key = vimperator.events.toString(event); + vimperator.log(multilineInputWidget.value); if (vimperator.events.isAcceptKey(key)) { var text = multilineInputWidget.value.substr(0, multilineInputWidget.selectionStart); @@ -753,6 +754,7 @@ vimperator.CommandLine = function () //{{{ { autosizeMultilineInputWidget(); } + return true; }, // FIXME: if 'more' is set and the MOW is not scrollable we should still