From 7447ac1229e4aab7e1ee4f95d321277640f0ee92 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 22 Feb 2009 14:49:05 -0500 Subject: Set MARK_*_COLOR for all new views rather than just the current one. --- modules/textadept/mlines.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/textadept/mlines.lua') diff --git a/modules/textadept/mlines.lua b/modules/textadept/mlines.lua index 2cd1cb93..ab83172c 100644 --- a/modules/textadept/mlines.lua +++ b/modules/textadept/mlines.lua @@ -29,7 +29,6 @@ local mlines_most_recent -- column position of the caret in the mlines table. function add() local buffer = buffer - buffer:marker_set_back(MARK_MLINE, MARK_MLINE_COLOR) local column = buffer.column[buffer.current_pos] local line = buffer:line_from_position(buffer.current_pos) local new_marker = buffer:marker_add(line, MARK_MLINE) @@ -137,3 +136,7 @@ function update() end buffer:end_undo_action() end + +buffer:marker_set_back(MARK_MLINE, MARK_MLINE_COLOR) +textadept.events.add_handler('view_new', + function() buffer:marker_set_back(MARK_MLINE, MARK_MLINE_COLOR) end) -- cgit v1.2.3