aboutsummaryrefslogtreecommitdiff
path: root/core/ext/find.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-03-07 18:23:19 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-03-07 18:23:19 -0500
commit06469346560710a0609105c991d1afcddf868ba1 (patch)
treef7c4075f20edaca51454893cfdc7173e1710701b /core/ext/find.lua
parentfadef8f38f960f2f6f28e9bf8a964ee2062aa745 (diff)
downloadtextadept-06469346560710a0609105c991d1afcddf868ba1.tar.gz
textadept-06469346560710a0609105c991d1afcddf868ba1.zip
Set MARK_FIND_COLOR for all new views rather than just the current one.
Diffstat (limited to 'core/ext/find.lua')
-rw-r--r--core/ext/find.lua4
1 files changed, 4 insertions, 0 deletions
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)