mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-09 18:45:51 +00:00
fix else...then.
This commit is contained in:
parent
9ee2cbb5ed
commit
110059704d
@ -882,7 +882,9 @@ Tput.prototype._compile = function(val) {
|
||||
end = val.indexOf('%;');
|
||||
// Terminfo does elseif's like
|
||||
// this: %?[expr]%t...%e[expr]%t...%;
|
||||
if (then < end && then < els) {
|
||||
// if (then < end && then < els) {
|
||||
// if (then !== -1 && then < end && then < els) {
|
||||
if (then !== -1 && then < end && (els !== -1 && then < els)) {
|
||||
stmt('} else if (');
|
||||
} else {
|
||||
stmt('} else {');
|
||||
|
Loading…
x
Reference in New Issue
Block a user