aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/command_entry.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/command_entry.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/command_entry.lua')
-rw-r--r--modules/textadept/command_entry.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua
index 8665e3fd..540c2510 100644
--- a/modules/textadept/command_entry.lua
+++ b/modules/textadept/command_entry.lua
@@ -216,7 +216,7 @@ function M.run(f, keys, lexer, height)
M:set_text('')
M.focus()
M:set_lexer(lexer or 'text')
- M.height = M:text_height(0) * (height or 1)
+ M.height = M:text_height(1) * (height or 1)
_G.keys._command_entry, _G.keys.mode = keys, '_command_entry'
end
@@ -232,7 +232,7 @@ end
-- it to show Lua documentation in the Lua command entry.
events.connect(events.INITIALIZED, function()
M.h_scroll_bar, M.v_scroll_bar = false, false
- for i = 0, M.margins - 1 do M.margin_width_n[i] = 0 end
+ for i = 1, M.margins do M.margin_width_n[i] = 0 end
M.call_tip_position = true
for key, f in pairs(keys) do
if f == textadept.editing.show_documentation then