Fix lens.c compile error: add missing Xft/fontconfig headers
- lens.c: add #include <X11/Xft/Xft.h> and <fontconfig/fontconfig.h> (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 <noreply@anthropic.com>
This commit is contained in:
1 parent
e03462b61b
commit
ab4bca672d
3 files changed
+2
-9
No files matched your search
@@ -20,6 +20,8 @@
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/Xft/Xft.h>
|
||||
#include <fontconfig/fontconfig.h>
|
||||
#include <Imlib2.h>
|
||||
#include <dirent.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user