From d633a4c74e824113f5d242cb18573fed3015bc27 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 31 Aug 2013 00:47:12 -0400 Subject: Allow user scripts to handle `BUFFER_NEW` and `VIEW_NEW` events on startup. A side effect is more efficient event emission during startup. --- modules/textadept/run.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'modules/textadept/run.lua') diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index 6a66e8d3..e253a6c9 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -250,7 +250,6 @@ local function set_error_properties() if CURSES then buffer:marker_define(MARK_ERROR, CURSES_MARK) end buffer.marker_back[MARK_ERROR] = buffer.property_int[M.ERROR_COLOR] end -if buffer then set_error_properties() end events.connect(events.VIEW_NEW, set_error_properties) return M -- cgit v1.2.3