From 7820d88a309aa0330ed1f6067c7836a6b74577cf Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Wed, 30 Jun 2021 21:54:18 +0200 Subject: [PATCH] Rename some API functions --- API.md | 4 ++-- init.lua | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/API.md b/API.md index 36249a0..3541ee5 100644 --- a/API.md +++ b/API.md @@ -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`. diff --git a/init.lua b/init.lua index c118547..6ad7cc0 100644 --- a/init.lua +++ b/init.lua @@ -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