Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package dmenu for openSUSE:Factory checked in at 2022-05-17 17:24:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dmenu (Old) and /work/SRC/openSUSE:Factory/.dmenu.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dmenu" Tue May 17 17:24:41 2022 rev:18 rq:977723 version:5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/dmenu/dmenu.changes 2020-09-25 16:35:56.500125078 +0200 +++ /work/SRC/openSUSE:Factory/.dmenu.new.1538/dmenu.changes 2022-05-17 17:25:03.091204589 +0200 @@ -1,0 +2,11 @@ +Wed May 11 11:41:00 UTC 2022 - Ferdinand Thiessen <[email protected]> + +- Update to version 5.1 + * inputw: improve correctness and startup performance + * drw_text: don't segfault when called with 0 width + * drw_text: improve performance when there's no match + * significantly improve performance on large strings + * improve performance of case-insensitive matching + * add support for more keypad keys + +------------------------------------------------------------------- Old: ---- dmenu-5.0.tar.gz New: ---- dmenu-5.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dmenu.spec ++++++ --- /var/tmp/diff_new_pack.mFzcjo/_old 2022-05-17 17:25:03.635205083 +0200 +++ /var/tmp/diff_new_pack.mFzcjo/_new 2022-05-17 17:25:03.635205083 +0200 @@ -1,7 +1,7 @@ # # spec file for package dmenu # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: dmenu -Version: 5.0 +Version: 5.1 Release: 0 Summary: A generic and efficient menu for X License: MIT ++++++ dmenu-5.0.tar.gz -> dmenu-5.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dmenu-5.0/LICENSE new/dmenu-5.1/LICENSE --- old/dmenu-5.0/LICENSE 2020-09-02 18:37:07.000000000 +0200 +++ new/dmenu-5.1/LICENSE 2022-02-11 12:31:56.000000000 +0100 @@ -8,7 +8,7 @@ ?? 2009 Markus Schnalke <[email protected]> ?? 2009 Evan Gates <[email protected]> ?? 2010-2012 Connor Lane Smith <[email protected]> -?? 2014-2020 Hiltjo Posthuma <[email protected]> +?? 2014-2022 Hiltjo Posthuma <[email protected]> ?? 2015-2019 Quentin Rameau <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dmenu-5.0/config.mk new/dmenu-5.1/config.mk --- old/dmenu-5.0/config.mk 2020-09-02 18:37:07.000000000 +0200 +++ new/dmenu-5.1/config.mk 2022-02-11 12:31:56.000000000 +0100 @@ -1,5 +1,5 @@ # dmenu version -VERSION = 5.0 +VERSION = 5.1 # paths PREFIX = /usr/local diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dmenu-5.0/dmenu.c new/dmenu-5.1/dmenu.c --- old/dmenu-5.0/dmenu.c 2020-09-02 18:37:07.000000000 +0200 +++ new/dmenu-5.1/dmenu.c 2022-02-11 12:31:56.000000000 +0100 @@ -103,13 +103,20 @@ } static char * -cistrstr(const char *s, const char *sub) +cistrstr(const char *h, const char *n) { - size_t len; + size_t i; - for (len = strlen(sub); *s; s++) - if (!strncasecmp(s, sub, len)) - return (char *)s; + if (!n[0]) + return (char *)h; + + for (; *h; ++h) { + for (i = 0; n[i] && tolower((unsigned char)n[i]) == + tolower((unsigned char)h[i]); ++i) + ; + if (n[i] == '\0') + return (char *)h; + } return NULL; } @@ -360,9 +367,11 @@ utf8, utf8, win, CurrentTime); return; case XK_Left: + case XK_KP_Left: movewordedge(-1); goto draw; case XK_Right: + case XK_KP_Right: movewordedge(+1); goto draw; case XK_Return: @@ -400,6 +409,7 @@ insert(buf, len); break; case XK_Delete: + case XK_KP_Delete: if (text[cursor] == '\0') return; cursor = nextrune(+1); @@ -410,6 +420,7 @@ insert(NULL, nextrune(-1) - cursor); break; case XK_End: + case XK_KP_End: if (text[cursor] != '\0') { cursor = strlen(text); break; @@ -429,6 +440,7 @@ cleanup(); exit(1); case XK_Home: + case XK_KP_Home: if (sel == matches) { cursor = 0; break; @@ -437,6 +449,7 @@ calcoffsets(); break; case XK_Left: + case XK_KP_Left: if (cursor > 0 && (!sel || !sel->left || lines > 0)) { cursor = nextrune(-1); break; @@ -445,18 +458,21 @@ return; /* fallthrough */ case XK_Up: + case XK_KP_Up: if (sel && sel->left && (sel = sel->left)->right == curr) { curr = prev; calcoffsets(); } break; case XK_Next: + case XK_KP_Next: if (!next) return; sel = curr = next; calcoffsets(); break; case XK_Prior: + case XK_KP_Prior: if (!prev) return; sel = curr = prev; @@ -473,6 +489,7 @@ sel->out = 1; break; case XK_Right: + case XK_KP_Right: if (text[cursor] != '\0') { cursor = nextrune(+1); break; @@ -481,6 +498,7 @@ return; /* fallthrough */ case XK_Down: + case XK_KP_Down: if (sel && sel->right && (sel = sel->right) == next) { curr = next; calcoffsets(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dmenu-5.0/stest.c new/dmenu-5.1/stest.c --- old/dmenu-5.0/stest.c 2020-09-02 18:37:07.000000000 +0200 +++ new/dmenu-5.1/stest.c 2022-02-11 12:31:56.000000000 +0100 @@ -84,7 +84,7 @@ if (!argc) { /* read list from stdin */ while ((n = getline(&line, &linesiz, stdin)) > 0) { - if (n && line[n - 1] == '\n') + if (line[n - 1] == '\n') line[n - 1] = '\0'; test(line, line); }
