From d8a7a4332d7dc9e5ef9e450634c430d162350893 Mon Sep 17 00:00:00 2001 From: sammyette Date: Wed, 25 Oct 2023 00:00:59 -0400 Subject: [PATCH] fix(commands/greenhouse): remove extra space in title, set pipe page title to stdin --- nature/commands/greenhouse.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nature/commands/greenhouse.lua b/nature/commands/greenhouse.lua index 0f7971e..9c155b0 100644 --- a/nature/commands/greenhouse.lua +++ b/nature/commands/greenhouse.lua @@ -43,7 +43,7 @@ commander.register('greenhouse', function(args, sinks) self.sink:write(ansikit.getCSI(self.region.height + 1 .. ';1', 'H')) if not self.isSpecial then - self.sink:writeln(lunacolors.format(string.format('{grayBg} ↳ Page %d %s{reset}', self.curPage, workingPage.title and ' — ' .. workingPage.title .. ' ' or ''))) + self.sink:writeln(lunacolors.format(string.format('{grayBg} ↳ Page %d%s{reset}', self.curPage, workingPage.title and ' — ' .. workingPage.title .. ' ' or ''))) end self.sink:write(buffer == '' and display or buffer) end @@ -98,7 +98,7 @@ commander.register('greenhouse', function(args, sinks) end) if sinks['in'].pipe then - local page = Page('', sinks['in']:readAll()) + local page = Page('stdin', sinks['in']:readAll()) gh:addPage(page) end