summaryrefslogtreecommitdiff
path: root/tests/unit
AgeCommit message (Collapse)Author
2022-12-10core: do not display non printable chars, fix function utf8_char_size_screenSébastien Helleu
Now the function utf8_char_size_screen can return -1 when the char is not printable. It has a specific behavior for some chars: - U+0009: value of option weechat.look.tab_width - U+0001 to U+001F (except U+0009): 1 - U+00AD (soft hyphen): -1 - U+200B (zero width space): -1
2022-12-10api: add function utf8_strncpySébastien Helleu
2022-12-10core: optimize and fix function utf8_strlen_screen with non printable charsSébastien Helleu
When there non printable chars, the return of the function was 1. For example utf8_strlen_screen("abc\x01") now returns 4 instead of 1. In addition the function has been optimized to not use the `mbstowcs` function which is slow; result is up to 15% faster.
2022-12-10core: add result of `utf8_char_size_screen` in /debug unicodeSébastien Helleu
2022-12-03core: display hex codepoint before integer codepoint in /debug unicodeSébastien Helleu
2022-11-27tests: define constants with UTF-8 strings, add tests on functions returning ↵Sébastien Helleu
size on screen
2022-11-21core: add option `unicode` in command `/debug`Sébastien Helleu
2022-11-11core: add identifier in buffer lines (closes #901)Sébastien Helleu
For buffers with formatted content, the "id" starts to 0 on each buffer and is incremented on each new line displayed (it is reset to 0 if reaching INT_MAX). For buffers with free content, the "id" is set to the same value as "y" (ie the line number, starting to 0).
2022-11-08core: add signals "buffer_user_{input|closing}_xxx" for buffers created with ↵Sébastien Helleu
`/buffer add` (closes #1848)
2022-11-06trigger: add regex command "y" to translate chars, set default regex command ↵Sébastien Helleu
to "s" (regex replace) (closes #1510)
2022-11-05tests: add another test on function string_translate_charsSébastien Helleu
2022-11-05core: add range of chars in evaluation of expressions with `chars:xxx`Sébastien Helleu
2022-11-05api: add function string_translate_charsSébastien Helleu
2022-10-08tests: Use LONGS_EQUAL for version number testsTrygve Aaberge
util_version_number returns an int, but BYTES_EQUAL only compares the last byte of the int, so it wouldn't test the rest of the int. I see other tests for functions returning an int use LONGS_EQUAL, so that seems correct to use.
2022-09-27api: restrict number to integer in function string_parse_sizeSébastien Helleu
2022-09-27api: add function string_parse_sizeSébastien Helleu
2022-09-18core: add key alt+backspace, change behavior of key ctrl+w (closes #559)Sébastien Helleu
The key ctrl+w now deletes one word until whitespace. The new key alt+backspace deletes one word (same behavior as ctrl+w in previous releases).
2022-09-17tests: add tests on filter functionsSébastien Helleu
2022-09-15irc: add option irc.look.display_pv_nick_changeSébastien Helleu
2022-09-05irc: fix display of message 350 (whois, gateway) (closes #1815)Sébastien Helleu
2022-09-05tests: add missing include of string.hSébastien Helleu
2022-09-03xfer: fix DCC file receive on Termux (closes #1811)Sébastien Helleu
This fixes such error displayed on Termux when receiving a DCC file: xfer: invalid address "96747949": error 8 hostname nor servname provided, or not known
2022-08-29irc: fix target buffer of generic errors when they contain a target nick ↵Sébastien Helleu
(closes #1814)
2022-08-16api: add function crypto_hash_fileSébastien Helleu
2022-08-15irc: fix extract of isupport value when it is last in list and without value ↵Sébastien Helleu
(closes #1807)
2022-08-13irc: display ACCOUNT command in private buffersSébastien Helleu
2022-08-13irc: add options and display SETNAME command in channels and private buffers ↵Sébastien Helleu
(closes #1805) New options: - irc.color.message_setname - irc.look.smart_filter_setname
2022-08-13irc: display CHGHOST command in private buffersSébastien Helleu
2022-08-13tests: add tests on dynamic string functions with NULL stringSébastien Helleu
2022-08-08tests: add tests on function xfer_file_search_crc32Sébastien Helleu
2022-08-07irc: fix parsing of messages with trailing spaces and no trailing parameter ↵Sébastien Helleu
(closes #1803)
2022-07-21irc: fix display of TOPIC message with an empty trailing parameterSébastien Helleu
2022-07-21irc: fix display of QUIT message with an empty trailing parameter (closes #1797)Sébastien Helleu
The regression was introduced with the new way to parse IRC message parameters, in version 3.4.
2022-07-20api: add arguments "index_start" and "index_end" in function ↵Sébastien Helleu
string_rebuild_split_string
2022-07-20api: rename function string_build_with_split_string to ↵Sébastien Helleu
string_rebuild_split_string
2022-07-16irc: fix duplicated channels in autojoin option when autojoin_dynamic is ↵Sébastien Helleu
enabled (closes #1795)
2022-07-02tests: add tests on IRC messages 524/704/705/706 (issue #1772)Sébastien Helleu
2022-07-02api: run hook_print callback also on empty messagesSébastien Helleu
2022-05-27core: add display conditions in custom bar items (issue #808)Sébastien Helleu
2022-05-27core: add command /item (closes #808)Sébastien Helleu
This allows to create custom bar items with evaluated content (like the script text_item.py does).
2022-04-18core: add case conversion in evaluation of expressions (closes #1778)Sébastien Helleu
2022-04-18core: add bar item "spacer"Sébastien Helleu
2022-03-13tests: add tests on function gui_buffer_match_listSébastien Helleu
2022-03-13tests: add tests on function gui_buffer_validSébastien Helleu
2022-03-13tests: add tests on functions gui_buffer_search_type and ↵Sébastien Helleu
gui_buffer_search_notify
2022-03-13tests: add tests on functions gui_buffer_new and gui_buffer_new_propsSébastien Helleu
2022-03-13tests: close xfer buffer after receiving some filesSébastien Helleu
2022-03-12tests: close buffers of channels created for tests on ↵Sébastien Helleu
irc_join_save_channels_to_autojoin
2022-03-11irc: add option "sort" in command /autojoinSébastien Helleu
2022-03-10tests: add missing include of string.hSébastien Helleu