Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37830687
en ru br
ALT Linux repositórios
S:0.7-alt2

Group :: Desktop gráfico/Outros
RPM: tabbed

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0004-interpret-nonexistent-large-position-numbers-as-the-.patch
Download


From 8cf5ebafe1f64fe3b365b05b0f0fd90d5833c705 Mon Sep 17 00:00:00 2001
From: Michael Hendricks <michael@ndrix.org>
Date: Thu, 4 May 2023 17:21:50 +0300
Subject: [PATCH 4/5] interpret nonexistent large position numbers as the
 largest known position
---
 tabbed.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tabbed.c b/tabbed.c
index 50a0f87..d228a77 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -836,8 +836,12 @@ maprequest(const XEvent *e)
 void
 move(const Arg *arg)
 {
-	if (arg->i >= 0 && arg->i < nclients)
-		focus(arg->i);
+	int i;
+
+	i = arg->i < nclients ? arg->i : nclients - 1;
+
+	if (i >= 0)
+		focus(i);
 }
 
 void
-- 
2.33.8
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009