From 349205aed149e83e5174c112f2a96c4a8c684f80 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 4 Dec 2010 09:03:08 +1100 Subject: [PATCH] Allow signed numeric values in :set!. (anekos) --HG-- extra : rebase_source : 36a2de3517da2d777d08b6b89c63a82c66faf2ff --- common/content/options.js | 2 +- pentadactyl/TODO | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/content/options.js b/common/content/options.js index 41275049..87f2846e 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -854,7 +854,7 @@ const Options = Module("options", { value = true; else if (value == "false") value = false; - else if (/^\d+$/.test(value)) + else if (/^[+-]?\d+$/.test(value)) value = parseInt(value, 10); else value = Option.dequote(value); diff --git a/pentadactyl/TODO b/pentadactyl/TODO index 786421ae..94978f1a 100644 --- a/pentadactyl/TODO +++ b/pentadactyl/TODO @@ -56,7 +56,8 @@ FEATURES: 7 make an option to disable session saving by default when you close Firefox 7 The output of the pageinfo-command should contain the security-information of ssl-encrypted sites 7 :grep support (needs location list) -7 map in command-line mode to something useful (such as Down/Up) +7 map in command-line mode to something useful (such as Down/Up) and + possibly to Vim-like behaviour 6 :mksession 6 add [count] support to :b* and :tab* commands where missing 6 check/correct spellings in insert mode with some mappings