mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-11 03:25:45 +00:00
fix terminfo operators. fixes #19.
This commit is contained in:
parent
97b6d6faee
commit
a14650860d
@ -984,7 +984,9 @@ Tput.prototype._compile = function(info, key, str) {
|
||||
if (read(/^%([+\-*\/m&|\^=><])/)) {
|
||||
if (ch === '=') ch = '===';
|
||||
else if (ch === 'm') ch = '%';
|
||||
expr('(stack.push(v = (stack.pop() ' + ch + ' stack.pop()) || 0), v)');
|
||||
expr('(v = stack.pop(),'
|
||||
+ ' stack.push(v = (stack.pop() ' + ch + ' v) || 0),'
|
||||
+ ' v)');
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user