diff options
author | 2009-03-07 18:23:19 -0500 | |
---|---|---|
committer | 2009-03-07 18:23:19 -0500 | |
commit | 06469346560710a0609105c991d1afcddf868ba1 (patch) | |
tree | f7c4075f20edaca51454893cfdc7173e1710701b /core/ext/find.lua | |
parent | fadef8f38f960f2f6f28e9bf8a964ee2062aa745 (diff) | |
download | textadept-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.lua | 4 |
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) |