diff --git a/common/content/buffer.js b/common/content/buffer.js index 23322cd2..1e154fe7 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -1401,7 +1401,7 @@ const Buffer = Module("buffer", { mappings.add(myModes, ["G", ""], "Go to the end of the document", - function (count) { buffer.scrollToPercent(buffer.scrollXPercent, count >= 0 ? count : 100); }, + function (count) { buffer.scrollToPercent(buffer.scrollXPercent, count != null ? count : 100); }, { count: true }); mappings.add(myModes, ["%"],