Upgraded node.js and bumped version
This commit is contained in:
@@ -24,7 +24,7 @@ function ANSIEscapeParser(options) {
|
||||
this.scrollBack = 0;
|
||||
this.graphicRendition = {};
|
||||
|
||||
if(!_.isNil(options.startRow)) {
|
||||
if(!_.isNil(options?.startRow)) {
|
||||
this.row = options.startRow;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -105,7 +105,7 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
||||
|
||||
const options = self.menuConfig.config;
|
||||
|
||||
if(!_.isNil(artData) && _.isNumber(artData.height)) {
|
||||
if(_.isNumber(artData?.height)) {
|
||||
options.startRow = artData.height + 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -585,7 +585,7 @@ function displayThemedPrompt(name, client, options, cb) {
|
||||
return callback(null, promptConfig, artInfo);
|
||||
}
|
||||
|
||||
if(!_.isNil(options) && !_.isNil(options.position) && !_.isNil(options.position.row)) {
|
||||
if(!_.isNil(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
|
||||
|
||||
Reference in New Issue
Block a user