From 06469346560710a0609105c991d1afcddf868ba1 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 7 Mar 2009 18:23:19 -0500 Subject: Set MARK_FIND_COLOR for all new views rather than just the current one. --- core/ext/find.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/ext/find.lua') diff --git a/core/ext/find.lua b/core/ext/find.lua index 064a7ddb..7d1b7873 100644 --- a/core/ext/find.lua +++ b/core/ext/find.lua @@ -327,3 +327,7 @@ function find.goto_file_in_list(next) end end end + +if buffer then buffer:marker_set_back(MARK_FIND, MARK_FIND_COLOR) end +textadept.events.add_handler('view_new', + function() buffer:marker_set_back(MARK_FIND, MARK_FIND_COLOR) end) -- cgit v1.2.3