From aa28462c2102e3c24fa8dc4e60436665f53862ea Mon Sep 17 00:00:00 2001 From: Josh Wainwright Date: Thu, 15 Dec 2016 11:49:10 +0100 Subject: vis: more informative error message for :set option Close #433 --- vis-cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vis-cmds.c b/vis-cmds.c index a220c33..bf811da 100644 --- a/vis-cmds.c +++ b/vis-cmds.c @@ -93,7 +93,7 @@ static bool cmd_set(Vis *vis, Win *win, Command *cmd, const char *argv[], Cursor } if (!win && (opt->flags & OPTION_FLAG_WINDOW)) { - vis_info_show(vis, "Need active window for :set command"); + vis_info_show(vis, "Need active window for :set %s", argv[1]); return false; } -- cgit v1.2.3