aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-02-08 13:37:51 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-02-08 13:37:51 -0500
commit20ae835da5a2fc1f0c2106f85758825d0cfd97e3 (patch)
tree9782c0f817e844b56fd2f9b731335d90aeedc9cd /core
parent33e9c58f408be3c42144b28464a029902580031d (diff)
downloadtextadept-20ae835da5a2fc1f0c2106f85758825d0cfd97e3.tar.gz
textadept-20ae835da5a2fc1f0c2106f85758825d0cfd97e3.zip
Removed buffer:find() function.
Diffstat (limited to 'core')
-rw-r--r--core/.buffer.lua10
-rw-r--r--core/.find.lua5
-rw-r--r--core/ext/find.lua5
3 files changed, 6 insertions, 14 deletions
diff --git a/core/.buffer.lua b/core/.buffer.lua
index 7d721ee1..2c2e88d2 100644
--- a/core/.buffer.lua
+++ b/core/.buffer.lua
@@ -365,16 +365,6 @@ buffer = {
}
---
--- Finds text in the current buffer.
--- The indexed buffer must be the currently focused one.
--- @param text The text to find.
--- @param flags SCI_FIND flags used.
--- @param start_pos The position to start the search.
--- @param end_pos The position to end the search.
--- @return start and end positions in the text or nothing.
-function buffer:find(text, flags, start_pos, end_pos)
-
----
-- Gets a range of text from the current buffer.
-- The indexed buffer must be the currently focused one.
-- @param start_pos The beginning position of the range of text to get.
diff --git a/core/.find.lua b/core/.find.lua
index 7d016cae..3f415928 100644
--- a/core/.find.lua
+++ b/core/.find.lua
@@ -52,8 +52,9 @@ local escapes = {}
---
-- Finds and selects text in the current buffer.
--- This is used by the find dialog. It is recommended to use the buffer:find()
--- function for scripting.
+-- This is used by the find dialog. It is recommended to use the
+-- buffer:search_in_target() or buffer:search_next() and buffer:search_prev()
+-- functions for scripting.
-- @param text The text to find.
-- @param next Flag indicating whether or not the search direction is forward.
-- @param flags Search flags. This is a number mask of 4 flags: match case (2),
diff --git a/core/ext/find.lua b/core/ext/find.lua
index 2608e862..5aea4a35 100644
--- a/core/ext/find.lua
+++ b/core/ext/find.lua
@@ -17,8 +17,9 @@ local escapes = {
---
-- Finds and selects text in the current buffer.
--- This is used by the find dialog. It is recommended to use the buffer:find()
--- function for scripting.
+-- This is used by the find dialog. It is recommended to use the
+-- buffer:search_in_target() or buffer:search_next() and buffer:search_prev()
+-- functions for scripting.
-- @param text The text to find.
-- @param next Flag indicating whether or not the search direction is forward.
-- @param flags Search flags. This is a number mask of 4 flags: match case (2),