Skip to content

Commit

Permalink
Guard prev container for indenting
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Nov 19, 2023
1 parent ceb6c4e commit 8f134bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export function newContainer() {
}

export function prevContainer() {
if (containers.length === 1) {
return;
}
containerIndex--;
container = containers[containerIndex];
}
Expand Down

0 comments on commit 8f134bd

Please sign in to comment.