From a98a1850640ca709ed68df3ca57f0404bbc4d3fc Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sat, 29 Nov 2025 06:41:28 -0700 Subject: clean up remaining struct and function name collisions I think that having structs with the same name be completely different depending on which part of the program you look at is even less readable than having functions with same name. --- vis-text-objects.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vis-text-objects.c') diff --git a/vis-text-objects.c b/vis-text-objects.c index a0f2bbb..8a35fd0 100644 --- a/vis-text-objects.c +++ b/vis-text-objects.c @@ -29,7 +29,7 @@ bool vis_textobject(Vis *vis, enum VisTextObject id) { return true; } -static Filerange search_forward(Vis *vis, Text *txt, size_t pos) { +static Filerange vis_text_object_search_forward(Vis *vis, Text *txt, size_t pos) { Filerange range = text_range_empty(); Regex *regex = vis_regex(vis, NULL); if (regex) @@ -38,7 +38,7 @@ static Filerange search_forward(Vis *vis, Text *txt, size_t pos) { return range; } -static Filerange search_backward(Vis *vis, Text *txt, size_t pos) { +static Filerange vis_text_object_search_backward(Vis *vis, Text *txt, size_t pos) { Filerange range = text_range_empty(); Regex *regex = vis_regex(vis, NULL); if (regex) @@ -183,11 +183,11 @@ const TextObject vis_textobjects[] = { .txt = text_object_indentation, }, [VIS_TEXTOBJECT_SEARCH_FORWARD] = { - .vis = search_forward, + .vis = vis_text_object_search_forward, .type = TEXTOBJECT_NON_CONTIGUOUS|TEXTOBJECT_EXTEND_FORWARD, }, [VIS_TEXTOBJECT_SEARCH_BACKWARD] = { - .vis = search_backward, + .vis = vis_text_object_search_backward, .type = TEXTOBJECT_NON_CONTIGUOUS|TEXTOBJECT_EXTEND_BACKWARD, }, }; -- cgit v1.2.3