Sébastien Helleu
de7150c65b
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-15 20:10:32 +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
d8987a1678
all: replace Copyright lines by SPDX copyright tag
2025-03-30 14:47:12 +02:00
Aaron Jones
f5038bccbc
Fix function prototypes for list of arguments
...
At the moment, building WeeChat triggers several thousand -Wstrict-prototypes
diagnostics. This is due to its source code using an empty argument list for
functions and function pointers that take no arguments, instead of explicitly
declaring that they take no arguments by using a void list.
This commit replaces all empty argument lists with a void list.
Note that Ruby's headers also suffer the same problem, which WeeChat can't
do anything to fix. Thus, building WeeChat with the Ruby plugin enabled
will still issue approximately 30 such diagnostics.
2025-03-10 08:16:52 +01:00
Sébastien Helleu
547e2b934e
core: update copyright dates
2025-02-01 23:13:18 +01:00
Sébastien Helleu
82f0b3b121
fset: replace calls to malloc by weechat_asprintf
2024-12-21 15:12:33 +01:00
Josh Soref
42c8f86533
spelling: should / may
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 21:22:56 +02:00
Josh Soref
0505a0ff76
spelling: case-insensitive
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 18:22:41 +02:00
Sébastien Helleu
bdfa1bd51c
core, plugins: return "0x0" instead of "(nil)" for pointers formatted in strings
...
This is a partial revert of the commit
965beb37de .
2024-06-22 08:54:08 +02:00
Sébastien Helleu
e64ab3c675
core, plugins: replace "%lx" by "%p" in calls to sscanf
2024-06-14 17:59:02 +02:00
Sébastien Helleu
920d06bd27
core, plugins: fix return code of command callbacks in case of error
2024-06-10 08:17:25 +02:00
Sébastien Helleu
b0f0afd7fa
fset: fix typo in /help fset
2024-06-09 23:16:32 +02:00
Sébastien Helleu
9a5a1fb300
plugins: remove check of NULL pointers before calling weechat_string_free_split() (issue #865 )
2024-04-26 08:53:22 +02:00
Sébastien Helleu
0b2d9bcb9b
plugins: remove check of NULL pointers before calling weechat_hashtable_free() (issue #865 )
2024-04-26 08:53:22 +02:00
Sébastien Helleu
3eed74a75c
plugins: remove check of NULL pointers before calling weechat_arraylist_free() (issue #865 )
2024-04-26 07:37:22 +02:00
Sébastien Helleu
852b8a5cdb
fset: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
965beb37de
core: fix print of pointer values
2024-04-01 21:08:52 +02:00
Sébastien Helleu
6e5eb5eb25
fset: fix typo in /help fset
2024-03-26 09:21:04 +01:00
Sébastien Helleu
3db4dd2790
fset: display number of commands executed in imported file, improve errors displayed
2024-03-26 07:46:35 +01:00
Sébastien Helleu
26630ada2d
fset: add option -import in command /fset
2024-03-25 21:00:42 +01:00
Mario Campos
1797fe18a3
fset: replace call to chmod() by fchmod() in the export function
2024-03-13 07:19:55 +01:00
Sébastien Helleu
ef5ebc19e9
fset: allow filename starting with "~" in command /fset -export
2024-02-21 22:05:16 +01:00
Sébastien Helleu
eecb2a997e
core: update copyright dates
2024-01-01 22:29:58 +01:00
Sébastien Helleu
75dc8b9d6c
core: fix crash on plugin reload when using musl libs ( closes #2052 )
2023-12-15 22:53:51 +01:00
Sébastien Helleu
58bab65fd1
fset: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
722cb27d04
core: add note for translators on command arguments (issue #2005 )
...
Only text between angle brackets (eg: "<name>") must be translated.
2023-09-05 13:28:26 +02:00
Sébastien Helleu
6737859330
fset: add local key bindings during the buffer creation
...
This allows the user to bind or unbind keys by setting options
"weechat.buffer.fset.fset.key_bind_*" and
"weechat.buffer.fset.fset.key_unbind_*".
2023-08-24 19:00:32 +02:00
Sébastien Helleu
fd07b2888f
fset: fix wrong value type in hashtable used for fset buffer properties
2023-08-24 18:44:50 +02:00
Sébastien Helleu
0bfdaa25bf
fset: remove redirection to /help fset.look.sort in /help fset
2023-08-12 16:25:25 +02:00
Sébastien Helleu
2f1de098bd
irc: add buffer for /list reply ( closes #1972 )
...
New options:
- irc.color.list_buffer_line_selected
- irc.color.list_buffer_line_selected_bg
- irc.look.list_buffer_sort
- irc.look.list_buffer_scroll_horizontal
- irc.look.new_list_position
- irc.look.list_buffer_topic_strip_colors
2023-08-12 13:05:49 +02:00
Nathaniel Evan
070f0da1c0
fset: fix the colon in help bar being included in description color
2023-08-08 06:59:14 +02:00
Nathaniel Evan
e0e839e7cc
fset: fix fset.color.help_description not applying
2023-08-08 06:59:14 +02:00
Sébastien Helleu
6b9dd2add3
fset: fix description of function fset_buffer_check_line_outside_window
2023-07-14 12:06:26 +02:00
Sébastien Helleu
38f3b40894
fset: add missing format in calls to snprintf
2023-07-08 17:14:03 +02:00
Sébastien Helleu
1d5433485c
fset: add variable allowed_values in options, add two color options
...
New options:
- fset.color.allowed_values
- fset.color.allowed_values_selected
2023-07-08 16:50:42 +02:00
Sébastien Helleu
4c0c7d9adc
fset: add missing enum in /help fset
2023-07-08 14:45:25 +02:00
Sébastien Helleu
8985607951
fset: fix mouse actions when second format is used
...
The mouse actions now properly handle the case where options are displayed on
multiple lines to calculate the option index in list.
2023-07-08 13:56:22 +02:00
Sébastien Helleu
5b2cf75f6e
fset: allow long type name in type filter
2023-07-08 13:30:37 +02:00
Sébastien Helleu
66cb9f6ea2
core: add option type "enum" ( closes #1973 )
...
The type "enum" replaces type "integer" when used with string values.
For compatibility, any option created with type "integer" and string values is
automatically created to "enum" on creation, with no error.
2023-07-08 13:28:40 +02:00
Sébastien Helleu
f1e372b5e2
fset: remove extra spaces between min and max values when second format is used
2023-07-06 22:05:11 +02:00
Sébastien Helleu
eda62e1218
fset: reset color immediately after the color name (issue #1920 )
2023-05-30 07:39:11 +02:00
Sébastien Helleu
1ad45598b5
fset: create buffer with function buffer_new_props (issue #1942 )
...
With this function, buffer properties are set when the buffer is created and
can be read immediately by other plugins/scripts, for example in a callback of
signal "buffer_opened".
2023-05-20 17:08:27 +02:00
Sébastien Helleu
6415c09a07
core: add quotes around paths in CMake files ( closes #29 )
2023-05-13 11:59:18 +02:00
Sébastien Helleu
bc5baf1f05
fset: change default value of option fset.color.value_selected from 80 to 159 (issue #1920 )
2023-04-27 22:36:38 +02:00
Sébastien Helleu
8c9e90524b
fset: enable option fset.look.use_color_value by default (issue #1920 )
2023-04-26 21:08:07 +02:00
Sébastien Helleu
6f1a66924f
fset: add options fset.color.color_name and fset.color.color_name_selected (issue #1920 )
2023-04-26 21:08:06 +02:00
Sébastien Helleu
c4c4ae3715
fset: change default colors (issue #1920 )
...
Default values changed:
- fset.color.description: default -> 242
- fset.color.description_selected: white -> default
- fset.color.line_marked_bg1: default -> 17
- fset.color.line_marked_bg2: default -> 17
- fset.color.line_selected_bg1: blue -> 24
- fset.color.line_selected_bg2: red -> 24
- fset.color.name_changed: brown -> 185
- fset.color.type: green -> 138
- fset.color.type_selected: lightgreen -> 216
- fset.color.value: cyan -> 38
- fset.color.value_changed: brown -> 185
- fset.color.value_selected: lightcyan -> 80
- fset.format.option2: ${color:darkgray} -> ${color:244}
2023-04-26 21:08:04 +02:00
Sébastien Helleu
4aabe8681f
core, plugins: set options to NULL by default, refactor config init functions
2023-04-01 20:56:11 +02:00
Sébastien Helleu
79f7c1cf83
fset: hook command /key
...
When command /key is called without arguments, and if fset plugin is loaded,
fset displays all key options (filter: `weechat.key*`).
2023-03-16 20:42:19 +01:00