diff options
author | 2014-10-11 13:56:43 -0400 | |
---|---|---|
committer | 2014-10-11 13:56:43 -0400 | |
commit | 358b67a248c62b32e0afdb95d459802dab45e49d (patch) | |
tree | 8814f28da3ac46cf8e6956f0b432f4c42fdc1ea0 /modules/textadept | |
parent | 776fa863178ee883f1a1c405d67e3796b0b5b000 (diff) | |
download | textadept-358b67a248c62b32e0afdb95d459802dab45e49d.tar.gz textadept-358b67a248c62b32e0afdb95d459802dab45e49d.zip |
Move the command entry into a split pane on GTK.
In the previous implementation without a split pane, the command entry could not
shrink in size.
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/command_entry.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua index cb8a92fb..54971686 100644 --- a/modules/textadept/command_entry.lua +++ b/modules/textadept/command_entry.lua @@ -77,6 +77,7 @@ function M.enter_mode(mode) end M:select_all() M.focus() + if not CURSES then M.height = M:text_height(0) end end --- @@ -173,7 +174,6 @@ events.connect(events.INITIALIZED, function() if not arg then return end -- no need to reconfigure on reset M.h_scroll_bar, M.v_scroll_bar = false, false M.margin_width_n[0], M.margin_width_n[1], M.margin_width_n[2] = 0, 0, 0 - if not CURSES then M.height = M:text_height(1) end M:set_lexer('lua') end) |