kitty: update to 0.40.0.

This commit is contained in:
classabbyamp 2025-03-09 13:27:11 -04:00
parent b2185911c6
commit 02e34a088e
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
2 changed files with 24 additions and 2 deletions

View file

@ -0,0 +1,22 @@
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.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"