Skip to content

Commit

Permalink
fix(commands/greenhouse): remove extra space in title, set pipe page …
Browse files Browse the repository at this point in the history
…title to stdin
  • Loading branch information
TorchedSammy committed Oct 25, 2023
1 parent 8fabdf4 commit d8a7a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nature/commands/greenhouse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d8a7a43

Please sign in to comment.