diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-11-29 06:41:28 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-12-16 11:28:44 -0700 |
| commit | a98a1850640ca709ed68df3ca57f0404bbc4d3fc (patch) | |
| tree | 430b52ed83df3df7ffed55cf71fe59e0a159ebe3 /vis-text-objects.c | |
| parent | 4f6ecc5d11a9a3f3e628080db6f03e8dd4ef3e9d (diff) | |
| download | vis-a98a1850640ca709ed68df3ca57f0404bbc4d3fc.tar.gz vis-a98a1850640ca709ed68df3ca57f0404bbc4d3fc.tar.xz | |
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.
Diffstat (limited to 'vis-text-objects.c')
| -rw-r--r-- | vis-text-objects.c | 8 |
1 files changed, 4 insertions, 4 deletions
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, }, }; |
