ranger: compat with ncurses 20231125

Fix: #53543
This commit is contained in:
Đoàn Trần Công Danh 2024-12-19 09:36:54 +07:00
parent c3ae49f6aa
commit f5ba14434f
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
| 20231111
| + modify endwin() to return an error if it is called again without an
| intervening screen update (report by Rajeev Pillai, NetBSD #57592).
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -147,6 +147,7 @@ class UI( # pylint: disable=too-many-in
pass
if self.settings.mouse_enabled:
_setup_mouse(dict(value=False))
+ self.win.refresh()
curses.endwin()
self.is_on = False

View File

@ -1,7 +1,7 @@
# Template file for 'ranger'
pkgname=ranger
version=1.9.4
revision=2
revision=3
build_style=python3-module
hostmakedepends="python3 python3-setuptools"
makedepends="python3-devel"