From 94e4f1240e015afb8add669c4306cfb1eec84764 Mon Sep 17 00:00:00 2001 From: Nathan Byrd Date: Mon, 28 Mar 2022 19:38:14 -0500 Subject: [PATCH] Small code review change --- core/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/theme.js b/core/theme.js index 7b6d7940..a511ba33 100644 --- a/core/theme.js +++ b/core/theme.js @@ -585,7 +585,7 @@ function displayThemedPrompt(name, client, options, cb) { return callback(null, promptConfig, artInfo); } - if(!_.isNil(options?.position?.row)) { + if(_.isNumber(options?.position?.row)) { artInfo.startRow = options.position.row; if(client.term.termHeight > 0 && artInfo.startRow + artInfo.height > client.term.termHeight) { // in this case, we will have scrolled