From ab4bca672d879938969ee1d8ee968f3ff63e7856 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Fri, 24 Jul 2026 10:21:39 -0400 Subject: [PATCH] Fix lens.c compile error: add missing Xft/fontconfig headers - lens.c: add #include and (XftFont, XGlyphInfo, etc. were declared but the header was never included) - quill.c: remove unused flen variable in ed_find_next() - rigel.c: remove unused get_file() helper (get_fidx() is used throughout) Co-Authored-By: Claude Sonnet 4.6 --- lens/lens.c | 2 ++ quill/quill.c | 1 - rigel/rigel.c | 8 -------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/lens/lens.c b/lens/lens.c index 13f6a31..f65f58f 100644 --- a/lens/lens.c +++ b/lens/lens.c @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/quill/quill.c b/quill/quill.c index 29bd032..44a3f47 100644 --- a/quill/quill.c +++ b/quill/quill.c @@ -333,7 +333,6 @@ static void ed_word_right(void) { /* find: returns line of next match, -1 if none */ static int ed_find_next(int from_line, int from_col) { if (!ed.find[0]) return -1; - int flen = ed.find_len; for (int pass = 0; pass < 2; pass++) { int start_line = (pass == 0) ? from_line : 0; for (int i = start_line; i < ed.nlines; i++) { diff --git a/rigel/rigel.c b/rigel/rigel.c index c439daa..ff21bf1 100644 --- a/rigel/rigel.c +++ b/rigel/rigel.c @@ -302,14 +302,6 @@ static void search_filter(Rigel *r) { } static int get_nvis(Rigel *r) { return r->search_on ? r->nfiltered : r->nfiles; } -static FileEntry *get_file(Rigel *r, int vis_idx) { - if (r->search_on) { - if (vis_idx < 0 || vis_idx >= r->nfiltered) return NULL; - return &r->files[r->filtered[vis_idx]]; - } - if (vis_idx < 0 || vis_idx >= r->nfiles) return NULL; - return &r->files[vis_idx]; -} /* translate visual row (vis_idx) → files[] index */ static int get_fidx(Rigel *r, int vis_idx) { if (r->search_on) {