summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorGregor <hartmann.gregor@outlook.com>2026-05-02 18:22:02 +0200
committerGitHub <noreply@github.com>2026-05-02 17:22:02 +0100
commitfceb15979e487ed74f73e05caf786a91d45b4075 (patch)
treee22ad1765b6fa8a88192784ebd46d3751b9d2fcb /src/config
parentc3e07986cc1afad0e69d30ac7817d7831f2d1c22 (diff)
config/lua: workspace.move/rename should accept "workspace" instead of "id" as a parameter (#14232)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/lua/bindings/LuaBindingsDispatchers.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config/lua/bindings/LuaBindingsDispatchers.cpp b/src/config/lua/bindings/LuaBindingsDispatchers.cpp
index 0b6ca07a..4a981f4e 100644
--- a/src/config/lua/bindings/LuaBindingsDispatchers.cpp
+++ b/src/config/lua/bindings/LuaBindingsDispatchers.cpp
@@ -1167,9 +1167,9 @@ static int hlWorkspaceToggleSpecial(lua_State* L) {
static int hlWorkspaceRename(lua_State* L) {
if (!lua_istable(L, 1))
- return Internal::configError(L, "hl.workspace.rename: expected a table { id, name? }");
+ return Internal::configError(L, "hl.workspace.rename: expected a table { workspace, name? }");
- const auto id = Internal::requireTableFieldWorkspaceSelector(L, 1, "id", "hl.workspace.rename");
+ const auto id = Internal::requireTableFieldWorkspaceSelector(L, 1, "workspace", "hl.workspace.rename");
auto name = Internal::tableOptStr(L, 1, "name");
lua_pushstring(L, id.c_str());
@@ -1187,7 +1187,7 @@ static int hlWorkspaceMove(lua_State* L) {
const auto mon = Internal::requireTableFieldMonitorSelector(L, 1, "monitor", "hl.workspace.move");
- auto id = Internal::tableOptWorkspaceSelector(L, 1, "id", "hl.workspace.move");
+ auto id = Internal::tableOptWorkspaceSelector(L, 1, "workspace", "hl.workspace.move");
if (id) {
lua_pushstring(L, id->c_str());
lua_pushstring(L, mon.c_str());