Skip to content

Commit 4a09ee7

Browse files
committed
getpid()
1 parent ae6b0c8 commit 4a09ee7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vimscript/expression/evaluate.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,9 @@ export class EvaluationContext {
11381138
}
11391139
return list(lines.map(str));
11401140
}
1141+
case 'getpid': {
1142+
return int(process.pid);
1143+
}
11411144
case 'getpos': {
11421145
const [s] = getArgs(1);
11431146
const { bufnum, lnum, col, off } = getpos(toString(s!));

0 commit comments

Comments
 (0)