diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-01-11 23:10:24 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-11 23:27:47 -0700 |
| commit | abf6384cca0f80fe7dfb35a8e2281d8664d9d459 (patch) | |
| tree | bc141b463e155b2170d2d70e9bb340614d76644d /main.c | |
| parent | 72c26fc09af79ce217575a9b0f0d5058c336d5d7 (diff) | |
| download | vis-abf6384cca0f80fe7dfb35a8e2281d8664d9d459.tar.gz vis-abf6384cca0f80fe7dfb35a8e2281d8664d9d459.tar.xz | |
buffer: delete pointless buffer_init function
lets not make the code harder to read for no reason
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2154,9 +2154,8 @@ static const char *unicode_info(Vis *vis, const char *keys, const Arg *arg) { char *grapheme = text_bytes_alloc0(txt, start, end-start), *codepoint = grapheme; if (!grapheme) return keys; - Buffer info; - buffer_init(&info); - mbstate_t ps = { 0 }; + Buffer info = {0}; + mbstate_t ps = {0}; Iterator it = text_iterator_get(txt, start); for (size_t pos = start; it.pos < end; pos = it.pos) { if (!text_iterator_codepoint_next(&it, NULL)) { |
