We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
v:number[min|max]
Number.[MAX|MIN]_SAFE_INTEGER
1 parent 9d1dcfc commit e219ee0Copy full SHA for e219ee0
src/vimscript/expression/evaluate.ts
@@ -334,9 +334,9 @@ export class EvaluationContext {
334
} else if (varExpr.name === 't_blob') {
335
return int(10);
336
} else if (varExpr.name === 'numbermax') {
337
- return int(Number.MAX_VALUE);
+ return int(Number.MAX_SAFE_INTEGER);
338
} else if (varExpr.name === 'numbermin') {
339
- return int(Number.MIN_VALUE);
+ return int(Number.MIN_SAFE_INTEGER);
340
} else if (varExpr.name === 'numbersize') {
341
// NOTE: In VimScript this refers to a 64 bit integer; we have a 64 bit float because JavaScript
342
return int(64);
0 commit comments