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 # 🎀 Changelog
## [2.2.3] - 2024-04-27 ## Unreleased
### Fixed ### 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 - `cat` command no longer prints extra newline at end of each file
### Added ### Added

View File

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

View File

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