diff options
author | 2012-07-21 12:37:00 -0400 | |
---|---|---|
committer | 2012-07-21 12:37:00 -0400 | |
commit | 03f166897801c29e9357bce3214f02502eb7f252 (patch) | |
tree | 4066fae87259848d7d488bd39871964f6fd510fa /modules/textadept/find.lua | |
parent | 5a50a7e55b870ae66a6bb69fcd3a7bd1841f3d9b (diff) | |
download | textadept-03f166897801c29e9357bce3214f02502eb7f252.tar.gz textadept-03f166897801c29e9357bce3214f02502eb7f252.zip |
Converted some `buffer` "get" and "set" functions into properties.
Also updated to Scintilla 3.2.1.
Diffstat (limited to 'modules/textadept/find.lua')
-rw-r--r-- | modules/textadept/find.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index 1a9d2cfb..3bd90597 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -58,7 +58,7 @@ find.replace_button_text = not NCURSES and _L['_Replace'] or _L['[Replace]'] find.replace_all_button_text = not NCURSES and _L['Replace _All'] or _L['[All]'] find.match_case_label_text = not NCURSES and _L['_Match case'] or _L['Case(F1)'] find.whole_word_label_text = not NCURSES and _L['_Whole word'] or _L['Word(F2)'] -find.lua_pattern_label_text = not NCURSES and _L['_Lua pattern'] or +find.lua_pattern_label_text = not NCURSES and _L['_Lua pattern'] or _L['Pattern(F3)'] find.in_files_label_text = not NCURSES and _L['_In files'] or _L['Files(F4)'] @@ -362,7 +362,7 @@ local function goto_file(pos, line_num) local file, file_line_num = line:match('^(.+):(%d+):.+$') if file and file_line_num then buffer:marker_delete_all(MARK_FIND) - buffer:marker_set_back(MARK_FIND, MARK_FIND_COLOR) + buffer.marker_back[MARK_FIND] = MARK_FIND_COLOR buffer:marker_add(line_num, MARK_FIND) buffer:goto_pos(buffer.current_pos) gui.goto_file(file, true, preferred_view) @@ -404,9 +404,9 @@ function find.goto_file_in_list(next) end end -if buffer then buffer:marker_set_back(MARK_FIND, MARK_FIND_COLOR) end +if buffer then buffer.marker_back[MARK_FIND] = MARK_FIND_COLOR end events_connect(events.VIEW_NEW, function() - buffer:marker_set_back(MARK_FIND, MARK_FIND_COLOR) + buffer.marker_back[MARK_FIND] = MARK_FIND_COLOR end) --[[ The functions below are Lua C functions. |