From e7fde860cac001fb9dceda29b3197075e940ae6b Mon Sep 17 00:00:00 2001 From: fox0430 Date: Wed, 10 Apr 2019 20:11:38 +0900 Subject: [PATCH 1/3] Fix #220 --- src/moe.nim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: From c06bfc797bfe10498218dc6d7c4220bf213bf15e Mon Sep 17 00:00:00 2001 From: fox0430 Date: Wed, 10 Apr 2019 20:12:52 +0900 Subject: [PATCH 2/3] Fix version --- src/moepkg/cmdoption.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From 884555d6de22b7feb2470b5d85aef9842c2b6205 Mon Sep 17 00:00:00 2001 From: fox0430 Date: Wed, 10 Apr 2019 20:13:38 +0900 Subject: [PATCH 3/3] Update moe.nimble --- moe.nimble | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"