From b0c6f95a7326eb2ac273d021ea245971ba6dbdef Mon Sep 17 00:00:00 2001 From: fox0430 Date: Mon, 9 Nov 2020 23:26:35 +0900 Subject: [PATCH 1/3] Fix #1166 --- src/moepkg/highlight.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/moepkg/highlight.nim b/src/moepkg/highlight.nim index d9ed62abe..4099a9fef 100644 --- a/src/moepkg/highlight.nim +++ b/src/moepkg/highlight.nim @@ -220,7 +220,8 @@ proc initHighlight*(buffer: string, empty = false if not empty: result.colorSegments.add(cs) - if language == SourceLanguage.langNone: + if language == SourceLanguage.langNone or + language == SourceLanguage.langShell: splitByNewline(buffer, EditorColorPair.defaultChar) return result From aa5069ce463399de410f32d28c3a97901a8f4346 Mon Sep 17 00:00:00 2001 From: fox0430 Date: Mon, 9 Nov 2020 23:29:41 +0900 Subject: [PATCH 2/3] Update moe.nimble --- moe.nimble | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moe.nimble b/moe.nimble index 03ab62a5b..11ea87505 100644 --- a/moe.nimble +++ b/moe.nimble @@ -1,6 +1,6 @@ # Package -version = "0.2.3" +version = "0.2.3.1" author = "fox0430" description = "A command lined based text editor" license = "GPLv3" From 17c6fd1a783a1e104bcce2baf75455846c9148c9 Mon Sep 17 00:00:00 2001 From: fox0430 Date: Mon, 9 Nov 2020 23:30:07 +0900 Subject: [PATCH 3/3] Fix integration test --- shpec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shpec.sh b/shpec.sh index d3394e390..c6b80e9d7 100644 --- a/shpec.sh +++ b/shpec.sh @@ -43,7 +43,7 @@ describe "moe is an editor" describe "invocation options" it "can display it's version" - assert equal `moe -v | grep -oPq "^moe v\d+\.\d+\.\d+$";echo $?` 0 + assert equal `moe -v | grep -oPq "^moe v\d+\.\d+\.\d+\.\d+$";echo $?` 0 end it "can display command line options"