From 9013ea935ad9e57cdd6c15bab21a2ba1563278b2 Mon Sep 17 00:00:00 2001 From: catloversg <152669316+catloversg@users.noreply.github.com> Date: Tue, 12 Nov 2024 22:22:17 +0700 Subject: [PATCH] BUGFIX: nano and vim use wrong template for text files (#1770) --- src/Terminal/commands/common/editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Terminal/commands/common/editor.ts b/src/Terminal/commands/common/editor.ts index 53190bbb6..fa1bc1ee6 100644 --- a/src/Terminal/commands/common/editor.ts +++ b/src/Terminal/commands/common/editor.ts @@ -16,7 +16,7 @@ interface EditorParameters { } function getScriptTemplate(path: string): string { - if (isLegacyScript(path)) { + if (hasTextExtension(path) || isLegacyScript(path)) { return ""; } const fileTypeFeature = getFileTypeFeature(getFileType(path));