mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-30 14:36:19 +02:00
Small code review change
This commit is contained in:
parent
44129f3348
commit
94e4f1240e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue