aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-11-29 23:32:06 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2014-11-29 23:32:06 -0500
commit7e81b79370879c4d7c01e8cca561478933ebc434 (patch)
treeab9a09be5395433fe56da8e417b98d59d318b2fd /modules
parent6ab70838082049d3236a66a63c4efeddf4dbfdc2 (diff)
downloadtextadept-7e81b79370879c4d7c01e8cca561478933ebc434.tar.gz
textadept-7e81b79370879c4d7c01e8cca561478933ebc434.zip
Fixed command entry reset bug for real instead of in r1861.
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/command_entry.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua
index 800708f2..6aeef1b4 100644
--- a/modules/textadept/command_entry.lua
+++ b/modules/textadept/command_entry.lua
@@ -178,16 +178,6 @@ keys.lua_command = {['\t'] = complete_lua, ['\n'] = {M.finish_mode, run_lua}}
-- Configure the command entry's default properties.
events.connect(events.INITIALIZED, function()
- if not arg then
- -- The buffers in `_BUFFERS` do not get wiped out during a reset. However,
- -- `ui.command_entry` is not a normal buffer and does get wiped out. When
- -- resetting, re-emit `events.BUFFER_NEW` in order to re-add buffer
- -- functions like `set_lexer()`.
- local buffer = _G.buffer
- _G.buffer = M -- make event handlers believe M is the global buffer for now
- events.emit(events.BUFFER_NEW)
- _G.buffer = buffer
- end
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
end)