From 9fa3d500c37635459bc94cc0c81ca258f7b083d7 Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Sun, 22 Nov 2020 14:59:43 -0500 Subject: [PATCH] Use per-layout default_cmd if set. (Issue #5) --- layout.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout.lua b/layout.lua index 67993c1..c0c0269 100644 --- a/layout.lua +++ b/layout.lua @@ -150,7 +150,7 @@ function module.create(args_or_name, editor, default_cmd) regions_cache = {}, } if instances[name].cmd == nil then - instances[name].cmd = default_cmd + instances[name].cmd = args.default_cmd end end return instances[name]