aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-03-26 17:37:08 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-03-26 17:37:08 -0400
commit940732342827ebe0d3bb98740419f621f9c77391 (patch)
tree32a3a6ac703429ca036e73c5215bac4f87b0818f /modules/textadept/menu.lua
parent52b0ec63792b3023b4ab42e42d2ce1e1fcb813bc (diff)
downloadtextadept-940732342827ebe0d3bb98740419f621f9c77391.tar.gz
textadept-940732342827ebe0d3bb98740419f621f9c77391.zip
Switched to 1-based indices for buffer positions, lines, and countable entities.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 153e25b9..a92c2498 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -306,7 +306,7 @@ local default_menubar = {
end},
SEPARATOR,
{_L['Select Lexer...'], textadept.file_types.select_lexer},
- {_L['Refresh Syntax Highlighting'], function() buffer:colourise(0, -1) end}
+ {_L['Refresh Syntax Highlighting'], function() buffer:colourise(1, -1) end}
},
{
title = _L['View'],
@@ -318,10 +318,10 @@ local default_menubar = {
{_L['Unsplit View'], function() view:unsplit() end},
{_L['Unsplit All Views'], function() while view:unsplit() do end end},
{_L['Grow View'], function()
- if view.size then view.size = view.size + buffer:text_height(0) end
+ if view.size then view.size = view.size + buffer:text_height(1) end
end},
{_L['Shrink View'], function()
- if view.size then view.size = view.size - buffer:text_height(0) end
+ if view.size then view.size = view.size - buffer:text_height(1) end
end},
SEPARATOR,
{_L['Toggle Current Fold'], function()