Compare commits

..

No commits in common. "fb9d30520ad2678ccf2e4003335616c6afa041d4" and "aa376f9b14135ff2679705d6d47d4a96ea32d742" have entirely different histories.

3 changed files with 14 additions and 22 deletions

View File

@ -1,8 +1,7 @@
# 🎀 Changelog
## [2.2.3] - 2024-04-27
## Unreleased
### Fixed
- Highligher and hinter work now, since it was regressed from the previous minor release.
- `cat` command no longer prints extra newline at end of each file
### Added

View File

@ -271,15 +271,6 @@ end
function Greenhouse:input(char)
end
local function read()
terminal.saveState()
terminal.setRaw()
local c = hilbish.editor.readChar()
terminal.restoreState()
return c
end
function Greenhouse:initUi()
local ansikit = require 'ansikit'
local bait = require 'bait'
@ -289,17 +280,14 @@ function Greenhouse:initUi()
local Page = require 'nature.greenhouse.page'
local done = false
local function sigint()
bait.catch('signal.sigint', function()
ansikit.clear()
done = true
end
end)
local function resize()
bait.catch('signal.resize', function()
self:update()
end
bait.catch('signal.sigint', sigint)
bait.catch('signal.resize', resize)
end)
ansikit.screenAlt()
ansikit.clear(true)
@ -323,10 +311,15 @@ function Greenhouse:initUi()
ansikit.showCursor()
ansikit.screenMain()
end
self = nil
bait.release('signal.sigint', sigint)
bait.release('signal.resize', resize)
function read()
terminal.saveState()
terminal.setRaw()
local c = hilbish.editor.readChar()
terminal.restoreState()
return c
end
return Greenhouse

View File

@ -11,7 +11,7 @@ var (
// Version info
var (
ver = "v2.2.3"
ver = "v2.2.2"
releaseName = "Poppy"
gitCommit string