From da2ce30e0ce8e8cfbf46f44ddb92c28246743bf5 Mon Sep 17 00:00:00 2001 From: Peter Kosyh Date: Wed, 9 Oct 2024 15:07:59 +0300 Subject: [PATCH] red: fix crash --- data/apps/red.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/apps/red.lua b/data/apps/red.lua index 16d3f6b..58e3c2c 100644 --- a/data/apps/red.lua +++ b/data/apps/red.lua @@ -247,7 +247,7 @@ local io_delim = { function win:save() if not self.buf:isfile() then - return + return false, "Buffer is not writable file" end local trim = self:getconf 'trim_spaces' if trim then