Rename some API functions

This commit is contained in:
Jean-Patrick Guerrero 2021-06-30 21:54:18 +02:00
parent 34841eddf3
commit 7820d88a30
2 changed files with 5 additions and 5 deletions

4
API.md
View File

@ -38,7 +38,7 @@ i3.new_tab {
Updates the current formspec. `extra_formspec` adds an additional formspec string.
#### `i3.delete_tab(tabname)`
#### `i3.remove_tab(tabname)`
Deletes a tab by name.
@ -178,7 +178,7 @@ end)
Removes all recipe filters and adds a new one.
#### `i3.delete_recipe_filter(name)`
#### `i3.remove_recipe_filter(name)`
Removes the recipe filter with the given `name`.

View File

@ -426,7 +426,7 @@ function i3.set_recipe_filter(name, f)
recipe_filters = {[name] = f}
end
function i3.delete_recipe_filter(name)
function i3.remove_recipe_filter(name)
recipe_filters[name] = nil
end
@ -2224,9 +2224,9 @@ function i3.get_tabs()
return tabs
end
function i3.delete_tab(tabname)
function i3.remove_tab(tabname)
if not true_str(tabname) then
return err "i3.delete_tab: tab name missing"
return err "i3.remove_tab: tab name missing"
end
for i, def in ipairs(tabs) do