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:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user