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

Allow signed numeric values in :set!. (anekos)

--HG--
extra : rebase_source : 36a2de3517da2d777d08b6b89c63a82c66faf2ff
This commit is contained in:
Doug Kearns
2010-12-04 09:03:08 +11:00
parent f63b13d431
commit 349205aed1
2 changed files with 3 additions and 2 deletions

View File

@@ -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);

View File

@@ -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 <A-n/p> in command-line mode to something useful (such as Down/Up)
7 map <A-n/p> in command-line mode to something useful (such as Down/Up) and
possibly <C-n/p> 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