summaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2023-01-08core: remove build with autotoolsSébastien Helleu
CMake is now the only way to build WeeChat.
2023-01-04core: fix Curl version in commentsSébastien Helleu
2023-01-03api: add Curl options for versions 7.64.0 to 7.87.0Sébastien Helleu
2023-01-03core: fix crash or infinite loop in /allbuf commandSébastien Helleu
A crash could occur if the command closes buffers. An infinite loop could occur if the command creates new buffers.
2023-01-03core: add variable list_size to prevent computing arraylist size in each ↵Sébastien Helleu
iteration
2023-01-01core: update copyright datesSébastien Helleu
2022-12-29core: add option weechat.look.chat_space_right (issue #1862)Sébastien Helleu
2022-12-25core: move `/input` buffer switch/zoom actions to command `/buffer`Sébastien Helleu
Actions moved: * `/input switch_active_buffer` -> `/buffer switch` * `/input switch_active_buffer_previous` -> `/buffer switch -previous` * `/input zoom_merged_buffer` -> `/buffer zoom`
2022-12-25core: move `/input` set_unread actions to commands `/allbuf` and `/buffer set`Sébastien Helleu
Actions moved: * `/input set_unread` -> `/allbuf /buffer set unread` * `/input set_unread_current_buffer` -> `/buffer set unread`
2022-12-25core: add command `/allbuf`Sébastien Helleu
2022-12-25api: do not check hotlist add conditions when adding buffer in hotlist with ↵Sébastien Helleu
function buffer_set
2022-12-25core: add option `add` in command `/hotlist`Sébastien Helleu
2022-12-25core: move `/input` hotlist actions to new command `/hotlist`Sébastien Helleu
Actions moved to command `/hotlist`: * `/input hotlist_clear` -> `/hotlist clear` * `/input hotlist_remove_buffer` -> `/hotlist remove` * `/input hotlist_restore_buffer` -> `/hotlist restore` * `/input hotlist_restore_all` -> `/hotlist restore -all`
2022-12-25core: add function gui_buffer_jump_last_visible_numberSébastien Helleu
2022-12-25core: move `/input` jump actions to command `/buffer jump`Sébastien Helleu
Actions moved to command `/buffer jump`: * `/input jump_smart` -> `/buffer jump smart` * `/input jump_previously_visited_buffer` -> `/buffer jump prev_visited` * `/input jump_next_visited_buffer` -> `/buffer jump next_visited` * `/input jump_last_buffer_displayed` -> `/buffer jump last_displayed`
2022-12-25core: fix typo in commentSébastien Helleu
2022-12-24core: remove useless conditionsSébastien Helleu
2022-12-24api: add functions string_strcmp and string_strncmpSébastien Helleu
2022-12-24doc/api: mention "UTF-8" in char/string comparison functionsSébastien Helleu
2022-12-24api: rename char comparison functions "utf8_char*" to "string_char*"Sébastien Helleu
2022-12-24api: return arithmetic difference between chars in string comparison functionsSébastien Helleu
Return code is changed for the following functions: - string_strcasecmp - string_strcasecmp_range - string_strncasecmp - string_strncasecmp_range - string_strcmp_ignore_chars - utf8_charcmp - utf8_charcasecmp - utf8_charcasecmp_range
2022-12-23api: fix function strcmp_ignore_chars with case sensitive comparison and ↵Sébastien Helleu
wide chars starting with the same byte
2022-12-21core: improve case convert and insensitive char comparisons (closes #258)Sébastien Helleu
All lowercase letters are now properly converted to uppercase letters (and vice versa), via functions `towupper` and `towlower`. Functions `string_tolower`, `string_toupper` and `utf8_charcasecmp` have been optimized to be faster when there are ASCII chars (< 128); functions are about 25-40% faster with mixed chars (both ASCII and multi-bytes). Function `utf8_wide_char` has been removed, `utf8_char_int` can be used instead.
2022-12-19core: remove unneeded castsSébastien Helleu
2022-12-19core: fix call to string_toupperSébastien Helleu
2022-12-19core: return directly output of string_dyn_free without temporary variableSébastien Helleu
2022-12-18api: return newly allocated string in functions string_tolower and ↵Sébastien Helleu
string_toupper
2022-12-18core: return number of bytes for UTF-8 char in function utf8_int_stringSébastien Helleu
2022-12-10core: add whole string information in /debug unicodeSébastien Helleu
2022-12-10core: add color attributes "blink" and "dim" (half bright) (closes #1855)Sébastien Helleu
2022-12-10core: fix function string_cut when there are non printable chars in suffixSébastien Helleu
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-12-03core: remove useless call to mbstowcs in function debug_unicode_charSébastien Helleu
2022-11-21core: add option `unicode` in command `/debug`Sébastien Helleu
2022-11-20core: reorder sub-commands in /debug command callbackSé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-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-23core: Prevent use of uninitialized memory when setting invalid colorTrygve Aaberge
If a color option value is null and is tried being set to an invalid color, the value was set to uninitialized memory which can lead to a segfault. Can be reproduced with this script: https://gist.github.com/trygveaa/6ddb3a52f525a7fd8e0908bafa83e07c The option doesn't have to be set from a script, it also happens with the /set command.
2022-10-12core: allow command `/toggle` to create option before setting the value, if ↵Sébastien Helleu
allowed in the section (closes #1837)
2022-10-08core: fix compilation warning on isdigit functionSébastien Helleu
2022-09-29core: fix compilation with zstd < 1.4.0Sébastien Helleu
Note: zstd ≥ 0.8.1 is now required to compile WeeChat.
2022-09-27api: add function file_compressSébastien Helleu
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).