From 409c0009c2ac97acc90524f6de2958e7934aa68c Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Wed, 17 Aug 2011 15:24:45 -0700
Subject: [PATCH] fix for smap to handle correctly the resolve mode when
 running in a command window and not running in ncurses.

---
 src/smap/configure_functions.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/smap/configure_functions.c b/src/smap/configure_functions.c
index f5825fb42ad..a7fcc07e2f4 100644
--- a/src/smap/configure_functions.c
+++ b/src/smap/configure_functions.c
@@ -608,8 +608,12 @@ static int _resolve(char *com)
 		xfree(ret_str);
 	}
 
-	wnoutrefresh(text_win);
-	doupdate();
+	if (params.commandline)
+		printf("%s", error_string);
+	else {
+		wnoutrefresh(text_win);
+		doupdate();
+	}
 
 	return 1;
 }
-- 
GitLab