diff options
Diffstat (limited to 'lua/clever_f/text_topology.lua')
| -rw-r--r-- | lua/clever_f/text_topology.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/clever_f/text_topology.lua b/lua/clever_f/text_topology.lua index 3b9bf0f..2941cf2 100644 --- a/lua/clever_f/text_topology.lua +++ b/lua/clever_f/text_topology.lua @@ -183,6 +183,13 @@ local function require_character_list(characters) return result end +function M.split_editor_characters(text) + if type(text) ~= "string" then + fail("text to split must be a string", 2) + end + return require_character_list(default_split_editor_characters(text)) +end + local function snapshot_value(text) if domain.TextSnapshot.is(text) then return text |
