diff --git a/content/editor.js b/content/editor.js index b7e68334..df530d15 100644 --- a/content/editor.js +++ b/content/editor.js @@ -375,7 +375,7 @@ vimperator.Editor = function () //{{{ // vimperator.echoerr("External editor returned with exit code " + retcode); // } // else - { + // { try { var val = vimperator.io.readFile(tmpfile); @@ -386,7 +386,7 @@ vimperator.Editor = function () //{{{ tmpBg = "red"; vimperator.echoerr("Could not read from temporary file " + tmpfile.path + ": " + e.message); } - } + // } // blink the textbox after returning var timeout = 100; diff --git a/content/events.js b/content/events.js index 7b130e47..18184a02 100644 --- a/content/events.js +++ b/content/events.js @@ -425,8 +425,8 @@ vimperator.Events = function () //{{{ return (key == "" || key == "" || key == ""); }, - getMapLeader: function () - { + getMapLeader: function () + { var leaderRef = vimperator.variableReference("mapleader"); return leaderRef[0] ? leaderRef[0][leaderRef[1]] : "\\"; }, diff --git a/content/mappings.js b/content/mappings.js index 2fe4e8aa..820d70e5 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -1086,9 +1086,9 @@ vimperator.Mappings = function () //{{{ for (var i = 0; i < count; i++) { if (isDirectory(url)) - url = url.replace(/^(.*?:)(.*?)([^\/]+\/*)$/, "$1$2/") + url = url.replace(/^(.*?:)(.*?)([^\/]+\/*)$/, "$1$2/"); else - url = url.replace(/^(.*?:)(.*?)(\/+[^\/]+)$/, "$1$2/") + url = url.replace(/^(.*?:)(.*?)(\/+[^\/]+)$/, "$1$2/"); } url = url.replace(/^(.*:\/+.*?)\/+$/, "$1/"); // get rid of more than 1 / at the end diff --git a/content/ui.js b/content/ui.js index 9ddc017e..76c3fc2d 100644 --- a/content/ui.js +++ b/content/ui.js @@ -1206,11 +1206,16 @@ vimperator.StatusLine = function () //{{{ var bufferPositionStr = ""; percent = Math.round(percent * 100); - if (percent < 0) bufferPositionStr = "All"; - else if (percent == 0) bufferPositionStr = "Top"; - else if (percent < 10) bufferPositionStr = " " + percent + "%"; - else if (percent >= 100) bufferPositionStr = "Bot"; - else bufferPositionStr = percent + "%"; + if (percent < 0) + bufferPositionStr = "All"; + else if (percent == 0) + bufferPositionStr = "Top"; + else if (percent < 10) + bufferPositionStr = " " + percent + "%"; + else if (percent >= 100) + bufferPositionStr = "Bot"; + else + bufferPositionStr = percent + "%"; bufferPositionWidget.value = bufferPositionStr; }