1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 05:24:12 +01:00

move buffer_switch and toggleBufferList to the :buffer and :buffers

ex-commands; make the "u" normal mode command call vimperator.commands.undo
rather than execute_command() directly
This commit is contained in:
Doug Kearns
2007-07-03 05:30:49 +00:00
parent f610861aa2
commit 9f88317a14
5 changed files with 31 additions and 33 deletions

View File

@@ -220,7 +220,7 @@ function Mappings() //{{{
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["B"],
toggleBufferList,
function() { vimperator.commands.buffers(); },
{
short_help: "Toggle buffer list",
help: "Toggles the display of the buffer list which shows all opened tabs."
@@ -402,7 +402,7 @@ function Mappings() //{{{
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["u"],
function(count) { execute_command(count, 'undo', false, ''); },
function(count) { vimperator.commands.undo("", false, count); },
{
short_help: "Undo closing of a tab",
help: "If a count is given, don't close the last but the n'th last tab.",