From 6feacb2603eca749be281b7eb4bd37c30087c086 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 29 May 2007 01:55:59 +0000 Subject: [PATCH] fix some minor, reintroduced, typos and add missing help line for map --- chrome/content/vimperator/mappings.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/chrome/content/vimperator/mappings.js b/chrome/content/vimperator/mappings.js index b4bda0c2..5192fb61 100644 --- a/chrome/content/vimperator/mappings.js +++ b/chrome/content/vimperator/mappings.js @@ -74,7 +74,7 @@ function Mappings() // XXX: make these 2 arrays prviate this.main = []; this.user = []; - + this.flags = { MOTION: 1 << 0, COUNT: 1 << 1, @@ -93,18 +93,18 @@ function Mappings() return true; } - + this.remove = function(map) { var index; - + if (!map || !(index = this.user[map.mode].indexOf(map))) return false; this.user[map.mode].splice(index, 1); return true; } - + this.get = function(mode, cmd) { if (!mode || !cmd) @@ -191,7 +191,7 @@ function Mappings() addDefaultMap(new Map(vimperator.mode.NORMAL, ["m"], set_location_mark, { short_help: "Set mark at the cursor position", usage: "m{a-zA-Z}", - help: "Marks a-z are local to the buffer, whereas A-Z are valid between buffers", + help: "Marks a-z are local to the buffer, whereas A-Z are valid between buffers.", flags: this.flags.ARGUMENT } )); @@ -203,7 +203,7 @@ function Mappings() )); addDefaultMap(new Map(vimperator.mode.NORMAL, ["O"], function(count) { vimperator.commandline.open(":", "open " + getCurrentLocation(), vimperator.modes.EX); }, { - short_help: "Open one ore more URLs in the current tab, based on current location", + short_help: "Open one or more URLs in the current tab, based on current location", help: "Works like o, but preselects current URL in the :open query." } )); @@ -304,7 +304,8 @@ function Mappings() addDefaultMap(new Map(vimperator.mode.NORMAL, ["ZZ"], function(count) { quit(true); }, { short_help: "Quit and save the session", - help: "Quit Vimperator, no matter how many tabs/windows are open. The session is stored.
" + "Works like :xall." + help: "Quit Vimperator, no matter how many tabs/windows are open. The session is stored.
" + + "Works like :xall." } )); @@ -376,7 +377,7 @@ function Mappings() addDefaultMap(new Map(vimperator.mode.NORMAL, ["", "", "", ""], function(count) { goDoCommand('cmd_scrollPageDown'); }, { short_help: "Scroll down a full page of the current document", - help: "No count support for now," + help: "No count support for now." } )); @@ -384,14 +385,14 @@ function Mappings() addDefaultMap(new Map(vimperator.mode.NORMAL, [""], function(count) { stepInHistory(count > 0 ? -1 * count : -1); }, { short_help: "Go to an older position in the jump list", - help: "The jump list is just the browser history for now", + help: "The jump list is just the browser history for now.", flags: this.flags.COUNT } )); addDefaultMap(new Map(vimperator.mode.NORMAL, [""], function(count) { stepInHistory(count > 0 ? count : 1); }, { short_help: "Go to a newer position in the jump list", - help: "The jump list is just the browser history for now", + help: "The jump list is just the browser history for now.", flags: this.flags.COUNT } )); @@ -525,6 +526,7 @@ function Mappings() { short_help: "Cancel any operation", help: "Exits any command line or hint mode and returns to browser mode.
" + "Also focuses the web page, in case a form field has focus and eats our key presses.", } ));