From 0df30f66dbdeaa2fdcd1c7bac38c6359cdb87cb8 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 25 Jul 2007 15:55:31 +0000 Subject: [PATCH] fix infinite loop when calling "gu" with a {count} --- TODO | 1 + chrome/content/vimperator/mappings.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 5690cec4..34e1c6c7 100644 --- a/TODO +++ b/TODO @@ -14,6 +14,7 @@ BUGS: webpage, saving only the html works just fine.. - add window resize support to hints - can't reverse tab through the vimperator toolbar +- gu doesn't work when the current URL contains a trailing slash FEATURES: 9 :map commands to keys diff --git a/chrome/content/vimperator/mappings.js b/chrome/content/vimperator/mappings.js index 4bb9da5e..0e2a68df 100644 --- a/chrome/content/vimperator/mappings.js +++ b/chrome/content/vimperator/mappings.js @@ -732,7 +732,7 @@ function Mappings() //{{{ if (count < 1) count = 1; - for (var i = 0; i < count - 1; i--) + for (var i = 0; i < count - 1; i++) gocmd += "../"; openURLs(gocmd);