Skip to content

Commit

Permalink
Fix reference to wrong group in zk-id-regexp (see PR localauthor#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
boyechko committed Jul 17, 2023
1 parent 7ce3850 commit f99d012
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zk-desktop.el
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,13 @@ This is a helper function used by `zk-desktop-make-buttons'."
(zk-alist (zk--alist))
(ids (zk--id-list nil zk-alist)))
(save-excursion
;; replace titles
(zk-desktop--normalize-titles (current-buffer) ids zk-alist)
;; make buttons
(goto-char (point-min))
(while (re-search-forward zk-id-regexp nil t)
(let* ((beg (line-beginning-position))
(end (line-end-position))
(id (match-string-no-properties 1)))
(id (match-string-no-properties 0)))
(if (member id ids)
(progn
(make-text-button beg end
Expand Down

0 comments on commit f99d012

Please sign in to comment.