Skip to content

Commit

Permalink
Evaluation order optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Dec 3, 2023
1 parent 582d805 commit b230c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions denops/denippet/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ export function main(denops: Denops): void {
await denops.cmd("do InsertLeave");
session.unguard();
if (
await g.get(denops, "denippet_drop_on_zero", false) &&
session.snippet?.currentNode().tabstop === 0 &&
session.snippet?.outer == null
session.snippet?.outer == null &&
await g.get(denops, "denippet_drop_on_zero", false)
) {
await session.drop();
}
Expand Down

0 comments on commit b230c0a

Please sign in to comment.