Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-12-11 | scripts: Send null values to config section callbacks | Trygve Aaberge | |
The callback_read and callback_create_option functions in the scripting APIs always get the value as a string, never as null. This means that if the value is null, there is no way for the script to distinguish this from an empty string for string options. This makes it impossible to properly make options with fallback values, like the irc server and server_default options, as far as I can see. All the scripting languages except Tcl use that language's equivalent for null. For JavaScript which has both null and undefined, null is used. For Tcl, the magic null string defined in commit 197a7a01e is used and the documentation is updated to describe that. I tested this with these scripts: https://gist.github.com/trygveaa/2d49c609addf9773d2ed16e15d1e3447 You can load all of those scripts and see the result with this command (assuming you have the scripts in the current directory): weechat -t -r "/filter add script * * script; /script load $(echo script_config.*)" | |||
2022-12-10 | trigger: fix variables sent to focus callback (closes #1858) | Sébastien Helleu | |
This fixes a regression introduced in WeeChat 3.7 by commit 0f67f55098db564c82c848262540704985790129. | |||
2022-12-10 | core: add whole string information in /debug unicode | Sébastien Helleu | |
2022-12-10 | core: add color attributes "blink" and "dim" (half bright) (closes #1855) | Sébastien Helleu | |
2022-12-10 | core: update ChangeLog (closes #1659, closes #1669, closes #1770) | Sébastien Helleu | |
2022-12-10 | core: update translations | Sébastien Helleu | |
2022-12-10 | core: fix function string_cut when there are non printable chars in suffix | Sébastien Helleu | |
2022-12-10 | core: do not display non printable chars, fix function utf8_char_size_screen | Sé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-10 | core: display chars < 32 with a letter/symbol and reverse video attribute in ↵ | Sébastien Helleu | |
chat | |||
2022-12-10 | core: toggle reverse video attribute in bars for chars < 32 only if not ↵ | Sébastien Helleu | |
already enabled | |||
2022-12-10 | core: expand tabulations as spaces in bars | Sébastien Helleu | |
2022-12-10 | core: replace call to memcpy by utf8_strncpy | Sébastien Helleu | |
2022-12-10 | api: add function utf8_strncpy | Sébastien Helleu | |
2022-12-10 | core: optimize and fix function utf8_strlen_screen with non printable chars | Sé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-10 | core: add result of `utf8_char_size_screen` in /debug unicode | Sébastien Helleu | |
2022-12-05 | doc: update Serbian auto-generated files | Sébastien Helleu | |
2022-12-05 | Update Serbian translation | Ivan Pešić | |
Documentation and messages translation update | |||
2022-12-03 | core: display hex codepoint before integer codepoint in /debug unicode | Sébastien Helleu | |
2022-12-03 | core: remove useless call to mbstowcs in function debug_unicode_char | Sébastien Helleu | |
2022-11-27 | tests: define constants with UTF-8 strings, add tests on functions returning ↵ | Sébastien Helleu | |
size on screen | |||
2022-11-22 | doc: update German auto-generated file | Sébastien Helleu | |
2022-11-22 | core: update German translations | Nils Görs | |
2022-11-21 | core: add option `unicode` in command `/debug` | Sébastien Helleu | |
2022-11-20 | core: reorder sub-commands in /debug command callback | Sébastien Helleu | |
2022-11-20 | core: fix typo in comment | Sébastien Helleu | |
2022-11-19 | trigger: properly initialize variable "value" to NULL | Sébastien Helleu | |
2022-11-19 | ci: install guile-3.0-dev instead of guile-2.2-dev | Sébastien Helleu | |
2022-11-19 | debian: change dependency guile-2.2-dev to guile-3.0-dev | Sébastien Helleu | |
2022-11-11 | core: 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-09 | doc/api: add missing note after list of signals | Sébastien Helleu | |
2022-11-09 | doc/user: add missing supported format for trigger regex | Sébastien Helleu | |
2022-11-08 | doc: update German auto-generated file | Sébastien Helleu | |
2022-11-08 | core: add signals "buffer_user_{input|closing}_xxx" for buffers created with ↵ | Sébastien Helleu | |
`/buffer add` (closes #1848) | |||
2022-11-07 | doc: update German documentation | Nils Görs | |
2022-11-07 | core: update German translations | Nils Görs | |
2022-11-06 | trigger: display failing regex in trigger creation error | Sébastien Helleu | |
2022-11-06 | core: update translations | Sébastien Helleu | |
2022-11-06 | trigger: use explicit command "s" in regex of default triggers | Sébastien Helleu | |
2022-11-06 | core: add release notes about new trigger regex format | Sébastien Helleu | |
2022-11-06 | trigger: add regex command "y" to translate chars, set default regex command ↵ | Sébastien Helleu | |
to "s" (regex replace) (closes #1510) | |||
2022-11-05 | tests: add another test on function string_translate_chars | Sébastien Helleu | |
2022-11-05 | core: add range of chars in evaluation of expressions with `chars:xxx` | Sébastien Helleu | |
2022-11-05 | api: add function string_translate_chars | Sébastien Helleu | |
2022-11-05 | doc: Fix typo in highlight_disable_regex option name | Trygve Aaberge | |
The section describes highlight_disable_regex, but the example used highlight_regex instead. | |||
2022-10-23 | core: update ChangeLog (issue #1844) | Sébastien Helleu | |
2022-10-23 | core: Prevent use of uninitialized memory when setting invalid color | Trygve 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-22 | doc: remove extra "#" before hex color | Sébastien Helleu | |
2022-10-22 | debian: update changelog | Sébastien Helleu | |
2022-10-21 | core: add version 3.7.1 | Sébastien Helleu | |
2022-10-20 | doc: update German documentation | Nils Görs | |