diff --git a/moe.nimble b/moe.nimble index 7e71abe1f..7d75efc45 100644 --- a/moe.nimble +++ b/moe.nimble @@ -1,6 +1,6 @@ # Package -version = "0.0.6" +version = "0.0.61" author = "fox0430" description = "a command lined based text editor" license = "GPLv3" diff --git a/src/moe.nim b/src/moe.nim index 53c01a68f..3fbf77aad 100644 --- a/src/moe.nim +++ b/src/moe.nim @@ -47,10 +47,13 @@ proc main() = status.mode = filer except OSError: writeFileOpenErrorMessage(status.commandWindow, filename.toRunes) - status.bufStatus[0].filename = "".toRunes + status.bufStatus.add(BufferStatus(filename: "".toRunes)) status.bufStatus[0].buffer = newFile() - else: status.bufStatus[0].buffer = newFile() + else: + status.bufStatus.add(BufferStatus(filename: "".toRunes)) + status.bufStatus[0].buffer = newFile() else: + status.bufStatus.add(BufferStatus(filename: "".toRunes)) status.bufStatus[0].buffer = newFile() if status.mode != filer: diff --git a/src/moepkg/cmdoption.nim b/src/moepkg/cmdoption.nim index 4a8591b26..7f650fc1d 100644 --- a/src/moepkg/cmdoption.nim +++ b/src/moepkg/cmdoption.nim @@ -15,7 +15,7 @@ proc parseCommandLineOption*(line: seq[string]): ComdParsedList = of cmdShortOption, cmdLongOption: case key: of "v", "version": - echo "v0.0.6" + echo "v0.0.61" quit() of cmdEnd: assert(false)