diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-18 20:39:05 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-18 20:39:16 -0800 |
| commit | ab116d4d8fc07332710c912c0bb3c3243a387504 (patch) | |
| tree | f34189a770db71b50c1e267b52fa340e53ca97d4 /containers.lua | |
| parent | 32b258868ccd35b6fce3cf5fa6221da74868bc0b (diff) | |
Fixed extra return value.
Diffstat (limited to 'containers.lua')
| -rw-r--r-- | containers.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/containers.lua b/containers.lua index 5b406de..85f201c 100644 --- a/containers.lua +++ b/containers.lua @@ -420,8 +420,12 @@ do local text_methods = { formatted_with = format, byte = byte, - position_of = find, - position_of_1_after = find, + position_of = (function(...) + return (find(...)) + end), + position_of_1_after = (function(...) + return (find(...)) + end), as_a_lua_identifier = as_lua_id, is_a_lua_identifier = is_lua_id, as_a_lua_id = as_lua_id, |
