kitty: update to 0.40.1.

This commit is contained in:
classabbyamp 2025-03-22 13:12:31 -04:00
parent e540209ca0
commit d16c878b91
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
2 changed files with 2 additions and 24 deletions

View file

@ -1,22 +0,0 @@
From 2ee03dde4e0909e079c2486489986408c03a3498 Mon Sep 17 00:00:00 2001
From: Kovid Goyal <kovid@kovidgoyal.net>
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;
}

View file

@ -1,6 +1,6 @@
# Template file for 'kitty'
pkgname=kitty
version=0.40.0
version=0.40.1
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=f79222090c9468fef9084bef989cc9bf1c9ec37d3980688bdacf0ddca90d4e74
checksum=ff37b36724b1c496b879c53e0e34985b26ac8ad7f335d72101d0c4aaf277232d
python_version=3
nopie_files="/usr/bin/kitten"