Sébastien Helleu
56903738b5
core: always enable partial completion for templates in option weechat.completion.partial_completion_templates (issue #2253 )
...
Previous behavior was to reverse the partial completion, which was confusing
when option like weechat.completion.partial_completion_command_arg was enabled
as well.
2025-06-30 18:52:58 +02:00
Sébastien Helleu
6d45a69f39
core: set max version for Curl symbol CURLOPT_SSL_FALSESTART
2025-06-21 20:30:05 +02:00
Sébastien Helleu
34f2e6cdd0
core: add script name in output of /debug hooks <plugin>
2025-06-08 16:36:46 +02:00
Albert Lee
e8ce75f20c
core: avoid dynamic format strings for Clang -Werror=format-security
2025-05-25 09:26:10 +02:00
Albert Lee
47f7518c1f
gui: use NCURSES_CFLAGS if available
2025-05-25 09:26:08 +02:00
Albert Lee
9a9a262ea1
python: use built-in CMake FindPython module from CMake 3.12 or higher
2025-05-25 09:19:05 +02:00
Albert Lee
7fb3ca6686
core: always define _XPG4_2 and __EXTENSIONS__ on Solaris/illumos
2025-05-25 09:06:51 +02:00
Albert Lee
e98a32373e
core: check if res_init requires linking with libresolv
2025-05-25 09:05:42 +02:00
Albert Lee
69d3787b5e
core: improve support for non-macro htonll and htobe64
2025-05-25 09:03:48 +02:00
Albert Lee
48568edfe0
lua: use LUA_CFLAGS from pkg-config
2025-05-22 21:02:58 +02:00
Albert Lee
d7b26e88b8
core: include pthread.h for pthread types
2025-05-22 21:02:53 +02:00
Sébastien Helleu
927a50e366
core, plugins: replace "%p" by "%lx" in calls to sscanf
2025-05-18 22:17:29 +02:00
Sébastien Helleu
d0c00f7db2
Revert "core, plugins: replace "%lx" by "%p" in calls to sscanf"
...
This reverts commit e64ab3c675 .
This was causing incorrect conversion of strings "0x..." to pointers on systems
like Solaris/illumos.
And as a side effect, buffers were sometimes empty in weechat relay clients
like glowing-bear.
2025-05-18 22:17:16 +02:00
Sébastien Helleu
9783256649
relay/api: use specifier %@ for times formatted by util_strftimeval
2025-05-18 22:15:39 +02:00
Sébastien Helleu
8106db400d
core: add support of specifier %@ for UTC time in function util_strftimeval
2025-05-18 22:15:06 +02:00
Sébastien Helleu
7b674c2618
core: add extra checks in function eval_string_range_chars
...
This is done in addition to changes made in commit
d475c16671 to fix the buffer overflow, caused by
the call to function utf8_next_char.
2025-05-11 10:26:17 +02:00
Sébastien Helleu
d475c16671
core: fix buffer overflow in function utf8_next_char and return NULL for empty string
...
Now the function utf8_next_char with an empty string returns NULL instead of
the next char, which is most of the time after an allocated buffer.
And the function utf8_char_size with an empty string now returns 0 instead of
1.
This indirectly fixes a buffer overflow in function eval_string_range_chars
when the input string is empty (for example when doing `/eval -n ${chars:}`).
2025-05-10 20:53:04 +02:00
Sébastien Helleu
6ecd9e66bf
core: fix buffer overflow in function eval_string_base_encode
2025-05-10 15:28:41 +02:00
Sébastien Helleu
9d37159a6b
core: use dynamic string in function string_replace_with_callback
2025-05-10 15:26:12 +02:00
Sébastien Helleu
aa54d3653c
core: fix buffer overflow in function eval_syntax_highlight_colorize
2025-05-10 15:26:09 +02:00
Sébastien Helleu
1d808a1f1c
core: fix buffer overflow in function util_parse_time
2025-05-08 19:09:18 +02:00
Sébastien Helleu
2bc290b6ed
core: fix integer overflow and return "unsigned long" in function util_version_number
2025-05-08 18:45:39 +02:00
Sébastien Helleu
f6cace609c
core: fix memory leak in function util_parse_delay
2025-05-08 18:12:11 +02:00
Sébastien Helleu
d74fc99fe1
core: write configuration files on disk only if there are changes ( closes #2250 )
2025-05-07 20:44:54 +02:00
Sébastien Helleu
51d24fd2da
api: add function file_compare (issue #2250 )
2025-05-07 20:44:48 +02:00
Sébastien Helleu
ca6035f754
core: fix integer overflow in base32 encoding/decoding
2025-05-05 20:43:21 +02:00
Sébastien Helleu
5b4820ab06
core: fix integer overflow with decimal numbers in calculation of expression
2025-05-05 20:25:41 +02:00
Sébastien Helleu
ceb6a007ff
core: add missing empty line
2025-05-05 13:18:35 +02:00
Sébastien Helleu
5b62cb6451
buflist: add variables ${number_zero} and ${number_zero2} (zero-padded buffer number)
2025-05-04 09:28:03 +02:00
Sébastien Helleu
683fa2f585
irc: add support of strikethrough color attribute (using half bright) ( closes #2248 )
...
As ncurses doesn't support strikethrough, the text is rendered as half
bright (WeeChat color: "dim").
2025-04-26 14:10:43 +02:00
Sébastien Helleu
0e777fef4e
core: update example in /help key
2025-04-25 18:12:59 +02:00
Sébastien Helleu
41f96c6494
core: fix write of weechat.log to stdout with weechat-headless --stdout ( closes #2247 )
2025-04-15 08:11:39 +02:00
Sébastien Helleu
d0babe8679
core: add refresh of window title on buffer switch, when option weechat.look.window_title is set
2025-04-11 19:30:32 +02:00
Sébastien Helleu
5ccbdca0c9
core: consider all keys are safe in cursor context ( closes #2244 )
2025-04-04 18:52:58 +02:00
Alvar Penning
d4b8685551
perl: fix build when multiplicity is not available
...
Building WeeChat 4.6.0 on OpenBSD failed with the following error.
> /usr/ports/pobj/weechat-4.6.0/weechat-4.6.0/src/plugins/perl/weechat-perl.c:356:13: error: expected ')'
> function) < 0)
> ^
> /usr/ports/pobj/weechat-4.6.0/weechat-4.6.0/src/plugins/perl/weechat-perl.c:352:9: note: to match this '('
> if (weechat_asprintf (
> ^
> /usr/ports/pobj/weechat-4.6.0/weechat-4.6.0/src/plugins/perl/../weechat-plugin.h:1312:31: note: expanded from macro 'weechat_asprintf'
> (weechat_plugin->asprintf)(__result, __fmt, ##__argz)
On further inspection, the line in question was recently altered in
099e11d7b8 , where a comma was forgotten in the
else branch of the MULTIPLICITY ifdef.
After adding the comma, WeeChat builds as usual.
2025-04-02 22:58:10 +02:00
Sébastien Helleu
2475f20cb7
all: move description of C files below the copyright and license
2025-03-31 11:47:49 +02:00
Sébastien Helleu
3a6ac9ee76
all: add SPDX license tag
2025-03-31 07:49:26 +02:00
Sébastien Helleu
55d936d63a
relay: add SPDX copyright tag in relay OpenAPI document
2025-03-30 14:47:12 +02:00
Sébastien Helleu
0a5222f5d6
php: add SPDX copyright tag in PHP stub file
2025-03-30 14:47:12 +02:00
Sébastien Helleu
f4b29093ca
python: add SPDX copyright tag in Python stub file
2025-03-30 14:47:12 +02:00
Sébastien Helleu
d8987a1678
all: replace Copyright lines by SPDX copyright tag
2025-03-30 14:47:12 +02:00
Sébastien Helleu
45c8bab9b8
irc: display nick changes and quit messages when option irc.look.ignore_tag_messages is enabled ( closes #2241 )
2025-03-28 12:08:40 +01:00
Sébastien Helleu
6d11468059
spell: rename variable "broker" to "spell_enchant_broker"
2025-03-16 15:58:30 +01:00
Joe Hermaszewski
6b19987e7f
spell: allow overriding dictionaries locations
...
Works for aspell and myspell (hunspell) when using enchant.
2025-03-16 15:58:23 +01:00
Sébastien Helleu
847ce17718
xfer: replace "ETA" by "time left"
2025-03-16 15:01:17 +01:00
Andrew Potter
15e2da3aac
xfer: compute speed and ETA with microsecond precision
2025-03-16 15:01:17 +01:00
Sébastien Helleu
ca22e49041
core, irc: replace "long" by "long long" to store seconds in timeval structure
2025-03-16 14:05:11 +01:00
Sébastien Helleu
764b309e92
core, irc, relay: fix formatting of seconds and microseconds
2025-03-16 14:04:28 +01:00
Sébastien Helleu
c0402bce52
core: fix formatting of microseconds in function util_strftimeval
2025-03-16 14:01:04 +01:00
Sébastien Helleu
9fe5fa23a0
core: convert "long long" to "unsigned long long" in functions util_get_microseconds_string and util_parse_delay
2025-03-16 11:13:25 +01:00