From 81d4336ccbb34d101fec7a8a4d959e6ed62a3f62 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 22 Nov 2007 12:08:58 +0000 Subject: [PATCH] whitespace fixes --- content/commands.js | 2 +- content/help.js | 2 +- content/mappings.js | 18 ++++++++++-------- content/options.js | 4 ++-- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/content/commands.js b/content/commands.js index af18a6ed..ec556f4b 100644 --- a/content/commands.js +++ b/content/commands.js @@ -1645,7 +1645,7 @@ vimperator.Commands = function () //{{{ { usage: ["qma[rk] {a-zA-Z0-9} [url]"], shortHelp: "Mark a URL with a letter for quick access", - help: "You can also mark whole groups like this:
"+ + help: "You can also mark whole groups like this:
" + ":qmark f http://forum1.com, http://forum2.com, imdb some artist" } )); diff --git a/content/help.js b/content/help.js index d227ba19..03905fee 100644 --- a/content/help.js +++ b/content/help.js @@ -177,7 +177,7 @@ vimperator.help = function (section, easter) //{{{ '$VIMPERATOR_HOME can be used to override the calculated $HOME directory.'; var mappings = 'mappings

Mappings

' + - '

The denotion of modifier keys is like in Vim, so C- means the Control key, M- the Meta key, A- the Alt key and S- the Shift key.

'+ + '

The denotion of modifier keys is like in Vim, so C- means the Control key, M- the Meta key, A- the Alt key and S- the Shift key.

' + ''; mappings += makeHelpString(vimperator.mappings, "", "", null); mappings += '
'; diff --git a/content/mappings.js b/content/mappings.js index 92a83f98..49dde1ac 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -107,17 +107,19 @@ vimperator.Mappings = function () //{{{ main[mode] = []; user[mode] = []; } + //vimperator.modes.forEach(function (mode) { main[mode] = user[mode] = []; }); function addDefaultMap(map) { - for (var i = 0; i < map.modes.length; i++) - { - var mode = map.modes[i]; - if (!main[mode]) - main[mode] = []; + //for (var i = 0; i < map.modes.length; i++) + //{ + // var mode = map.modes[i]; + // //if (!main[mode]) + // // main[mode] = []; - main[mode].push(map); - } + // main[mode].push(map); + //} + map.modes.forEach(function (mode) { main[mode].push(map) }); } function getMap(mode, cmd, stack) @@ -1147,7 +1149,7 @@ vimperator.Mappings = function () //{{{ "
  • y to yank its location
  • " + "
  • Y to yank its text description
  • " + "" + - "Additionally there are two {mode}s, which will start an AlwaysHint mode:
    "+ + "Additionally there are two {mode}s, which will start an AlwaysHint mode:
    " + "