Crash when `vnew`
### Version

moe v0.3.0

Git hash: e7a1b5e5eacc20ac9607078f8af29f42cb53defd
Build type: Debug

### Environment

_No response_

### Category

Major — The software does not fulfill the task it is designed for.

### Steps to Reproduce

1. `vnew`

### Detailed Description

home/fox/git/moe/src/moe.nim(148) moe
/home/fox/git/moe/src/moe.nim(144) main
/home/fox/git/moe/src/moepkg/mainloop.nim(475) editorMainLoop
/home/fox/git/moe/src/moepkg/editorstatus.nim(793) update
/home/fox/git/moe/src/moepkg/editorview.nim(576) update
/home/fox/git/moe/src/moepkg/editorview.nim(440) writeAllLines
/home/fox/git/moe/src/moepkg/editorview.nim(307) writeSidebarLine
/home/fox/.choosenim/toolchains/nim-2.0.0/lib/system/indices.nim(142) []
/home/fox/.choosenim/toolchains/nim-2.0.0/lib/system/fatal.nim(53) sysFatal
 Error: unhandled exception: index 1 not in 0 .. 0 [IndexDefect]

Link #1881