Skip to content

Commit

Permalink
always show message even when adjusting node limit did nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed May 20, 2020
1 parent baf9d64 commit 5bd4e96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/95_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ function NewRenderer() {
if (direction > 0) {

if (typeof cfg_value !== "number" || cfg_value <= 0) { // Already unlimited
this.set_node_limit_generic(null, special_flag);
return;
}

Expand All @@ -757,6 +758,8 @@ function NewRenderer() {
}
}

this.set_node_limit_generic(null, special_flag);

} else {

if (typeof cfg_value !== "number" || cfg_value <= 0) { // Unlimited; reduce to highest finite option
Expand All @@ -770,6 +773,8 @@ function NewRenderer() {
return;
}
}

this.set_node_limit_generic(1, special_flag);
}
};

Expand Down

0 comments on commit 5bd4e96

Please sign in to comment.