From 02e34a088eb4c97938970636f88ca2854ac013b0 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sun, 9 Mar 2025 13:27:11 -0400 Subject: [PATCH] kitty: update to 0.40.0. --- srcpkgs/kitty/patches/fix-32bit.patch | 22 ++++++++++++++++++++++ srcpkgs/kitty/template | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/kitty/patches/fix-32bit.patch diff --git a/srcpkgs/kitty/patches/fix-32bit.patch b/srcpkgs/kitty/patches/fix-32bit.patch new file mode 100644 index 00000000000..21142140475 --- /dev/null +++ b/srcpkgs/kitty/patches/fix-32bit.patch @@ -0,0 +1,22 @@ +From 2ee03dde4e0909e079c2486489986408c03a3498 Mon Sep 17 00:00:00 2001 +From: Kovid Goyal +Date: Sun, 9 Mar 2025 22:23:11 +0530 +Subject: [PATCH] Fix #8421 + +--- + kitty/line.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kitty/line.c b/kitty/line.c +index 6e17b5aef7..66540a77f7 100644 +--- a/kitty/line.c ++++ b/kitty/line.c +@@ -189,7 +189,7 @@ prev_char_pos(const Line *self, index_type x, index_type num) { + const CPUCell *ans = self->cpu_cells + x, *limit = self->cpu_cells - 1; + if (ans->is_multicell) ans -= ans->x; + while (num-- && --ans > limit) if (ans->is_multicell) ans -= ans->x; +- return ans > limit ? ans - self->cpu_cells : self->xnum; ++ return ans > limit ? (index_type)(ans - self->cpu_cells) : self->xnum; + } + + diff --git a/srcpkgs/kitty/template b/srcpkgs/kitty/template index 18c2684498c..b45628689a7 100644 --- a/srcpkgs/kitty/template +++ b/srcpkgs/kitty/template @@ -1,6 +1,6 @@ # Template file for 'kitty' pkgname=kitty -version=0.39.1 +version=0.40.0 revision=1 build_helper="python3" pycompile_dirs="usr/lib/kitty" @@ -17,7 +17,7 @@ license="GPL-3.0-only" homepage="https://sw.kovidgoyal.net/kitty/" changelog="https://sw.kovidgoyal.net/kitty/changelog.html" distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz" -checksum=4baa2a59de7569b3b34f44ea8536c53d312aa76d1347121a2d6557abfde21325 +checksum=f79222090c9468fef9084bef989cc9bf1c9ec37d3980688bdacf0ddca90d4e74 python_version=3 nopie_files="/usr/bin/kitten"