14 Commits

Author SHA1 Message Date
Kovid Goyal
30023d9d9c DRYer 2024-07-16 10:57:00 +05:30
Kovid Goyal
7a35cb2d8f Use an array for id-to-hyperlink mapping
Faster, less memory and less code.
2024-07-14 18:43:57 +05:30
Kovid Goyal
35d73410f8 Restore hyperlink garbage collection 2024-07-14 14:57:56 +05:30
Kovid Goyal
f7d81409ae ... 2024-07-13 14:04:21 +05:30
Kovid Goyal
b53264c099 Discard hyperlinks in scrollback if there are too many 2024-07-12 09:11:01 +05:30
Kovid Goyal
2955c3f7a7 Move hyperlink hashmap to verstable
Also speedup getting url for hyperlink id by using a second hash map for
it. Change behavior when there are too many hyperlinks to discard new
hyperlinks instead of remapping old hyperlink id and making some old
hyperlink wrong.
2024-07-12 09:11:00 +05:30
Kovid Goyal
ec68739585 Make it harder to forget to redefine uthash_fatal 2021-05-07 06:58:54 +05:30
Kovid Goyal
0d665495b8 Make getting hyperlinks from ids useable throughtout the codebase 2020-09-22 09:25:16 +05:30
Kovid Goyal
229134cf31 Misc. fixes for issues reported by clang's static analyzer
Most of them are false positives. A couple of mem leaks after unlikely
failure conditions.
2020-09-10 10:47:28 +05:30
Kovid Goyal
c19906eb87 Fix read overflow reported by ASAN 2020-09-10 10:47:27 +05:30
Kovid Goyal
c8e2061e2a Move hyperlink to end of hash table when re-referenced 2020-09-10 10:47:27 +05:30
Kovid Goyal
78dc93721d Add tests for hyperlink storage 2020-09-10 10:47:27 +05:30
Kovid Goyal
33beecddda Implement storage of URLs in a hash map 2020-09-10 10:47:27 +05:30
Kovid Goyal
e99d93ca30 Implement parsing of OSC 8
Also start work on storing hyperlinks with cells
2020-09-10 10:47:24 +05:30