fix: clear before setting statusline

pull/260/head
sammyette 2023-11-11 22:27:50 -04:00
parent 0f923a6f80
commit 0607a90c30
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 3 additions and 2 deletions

View File

@ -89,7 +89,7 @@ Available sections: ]] .. table.concat(modules, ', ')
local size = terminal.size()
self.region = {
width = size.width,
height = size.height - 3
height = size.height - 2
}
end
gh:resize()
@ -102,7 +102,8 @@ Available sections: ]] .. table.concat(modules, ', ')
workingPage = self.specialPage
end
self.sink:write(ansikit.getCSI(self.region.height + 2 .. ';1', 'H'))
self.sink:write(ansikit.getCSI(self.region.height + 1 .. ';1', 'H'))
self.sink:write(ansikit.getCSI(0, 'J'))
if not self.isSpecial then
if args[1] == 'api' then
self.sink:writeln(lunacolors.reset(string.format('%s', workingPage.title)))