Sébastien Helleu
77cefb7621
core: limit hook_command_run to the exact given command (when no "*" are in command hook)
2017-06-25 16:35:27 +02:00
Sébastien Helleu
3dc72b2e5f
core: free use of pointer after free in case of error in function string_dyn_concat
2017-06-10 17:35:47 +02:00
Sébastien Helleu
54bf589d7d
core, plugins: fix conditions to insert elements in linked lists
...
This removes scan-build warnings about dereference of last_xxx null pointers.
2017-06-10 16:21:11 +02:00
Sébastien Helleu
f2d250a78f
core: remove unused function upgrade_file_read_string_utf8 (issue #1012 )
2017-06-10 15:02:34 +02:00
Sébastien Helleu
ad9c75f234
core: remove unused functions secure_search_hash_algo and secure_search_cipher (issue #1012 )
2017-06-10 15:01:58 +02:00
Sébastien Helleu
3af24d9739
core: remove unused function proxy_search_with_option_name (issue #1012 )
2017-06-10 15:01:21 +02:00
Sébastien Helleu
193ff0db37
core: remove unused functions config_file_config_insert and config_file_section_insert_in_config (issue #1012 )
2017-06-09 07:54:27 +02:00
Sébastien Helleu
111962c65a
core: remove unused function command_secure_display_data (issue #1012 )
2017-06-07 07:16:07 +02:00
Simmo Saan
dab0792029
core, script: remove unused config section variables
2017-06-03 15:59:12 +03:00
Simmo Saan
7a0bbd802b
core: forward declare structs to avoid implicit declarations
2017-06-03 15:58:07 +03:00
Simmo Saan
824e6603cc
core: fix gui_color_dump called with excess arguments
2017-06-03 15:56:26 +03:00
Miroslav Koskar
ab6ca6b065
core: remove config_look_hotlist_add_buffer_if_away completely
2017-06-01 01:10:54 +02:00
Sébastien Helleu
7621939a7a
api: add function hdata_compare
2017-05-30 20:29:17 +02:00
Sébastien Helleu
f6a8c28d2d
api: add function config_option_get_string in plugin API
2017-05-30 20:28:01 +02:00
Sébastien Helleu
a0f1f3fd68
core: remove unused variable "index" in function eval_hdata_get_value
2017-05-28 08:25:41 +02:00
Sébastien Helleu
c88d578d2d
core: fix potential use of NULL pointer in function arraylist_clear
2017-05-22 11:29:12 +02:00
Sébastien Helleu
925e8b79a8
core: allow index for hdata arrays in evaluation of expressions
2017-05-20 00:05:31 +02:00
Sébastien Helleu
df00926d35
core: add option weechat.completion.nick_case_sensitive ( closes #981 )
2017-05-06 10:18:44 +02:00
Sébastien Helleu
1fc06ba0ac
core: improve translation of /help eval
2017-04-29 17:39:50 +02:00
Simmo Saan
1329dfb57a
core: add wildcard matching operators to eval ( closes #608 )
2017-04-29 17:04:44 +02:00
Sébastien Helleu
49cdbaab38
core: fix check of condition in ${if:...} (evaluated strings)
2017-04-25 19:41:49 +02:00
Sébastien Helleu
2a43f45947
core: fix command /cursor stop (do not toggle cursor mode) ( closes #964 )
2017-04-25 07:20:34 +02:00
Sébastien Helleu
a96d27f236
core: add new cut formats in function comment
2017-04-25 07:19:02 +02:00
Sébastien Helleu
112bebcddf
core: add a way to count the suffix length in max chars displayed in cut of string ("cut:" and "cutscr:") ( closes #963 )
...
The format to use is one of:
- ${cut:+max,suffix,string}
- ${cutscr:+max,suffix,string}
With the "+" before max, WeeChat ensures there are at most "max" chars in
output, including the length of suffix string.
2017-04-24 22:37:49 +02:00
Sébastien Helleu
94355e2e38
core: ensure length is not negative in function string_strndup
2017-04-22 15:15:54 +02:00
Sébastien Helleu
90029f9abd
doc: fix translation of command "eval" in user's guide
2017-04-21 21:59:52 +02:00
Sébastien Helleu
5a8fb043ab
core: add link to function color (plugin API reference) in /help eval
2017-04-21 07:36:22 +02:00
arza
442940942a
core: fix typo in /help buffer
2017-04-08 15:35:47 +03:00
Sébastien Helleu
45de475c74
Merge pull request #944 from arza-zara/duplicate_sigquit
...
core: remove duplicate util_catch_signal for SIGQUIT
2017-04-07 22:31:34 +02:00
arza
e7edebfaee
core: remove duplicate util_catch_signal for SIGQUIT
2017-04-07 20:46:47 +03:00
Sébastien Helleu
fab7a8bdfd
core: add Curl options for versions 7.50.0 to 7.52.0
2017-04-06 07:23:52 +02:00
Sébastien Helleu
c652598ad7
api: fix memory leak in function string_dyn_free()
...
Bug was introduced by commit af138840b3 .
2017-04-02 08:39:29 +02:00
Sébastien Helleu
af138840b3
api: return pointer to string in function string_dyn_free() if argument "free_string" is 0
2017-04-01 12:04:28 +02:00
Sébastien Helleu
bb00b6b8fb
core: add ${re:#} to get the index of last group captured in evaluation of expressions
2017-03-30 22:13:14 +02:00
Sébastien Helleu
467f482ea6
core: make "callback_cmp" optional in call to function arraylist_new()
...
If no callback is given, a default callback is used, which just compares
pointers.
2017-03-30 20:35:16 +02:00
Sébastien Helleu
f99c866f35
core: add cut of string with max chars displayed in evaluation of expressions
...
The syntax is: ${cutscr:max,suffix,string}.
The string is cut after max chars displayed on screen. If the string is cut,
the optional suffix is added after.
2017-03-27 21:14:51 +02:00
arza
24fd69e42c
core: support local variables in /buffer get
2017-03-26 08:14:41 +03:00
Sébastien Helleu
fb66eeec79
core: update translations
2017-03-25 15:13:18 +01:00
Sébastien Helleu
1963191700
core: prevent infinite loop in evaluation of expression with extra_vars_eval
...
When extra variables are evaluated, to prevent infinite loop if the evaluated
variable is calling itself, it is removed from hashtable "extra_vars" before
evaluation.
2017-03-25 14:19:48 +01:00
Sébastien Helleu
9a8ec36cbd
core: add cut of string in evaluation of expressions
...
The syntax is: ${cut:max,suffix,string}.
The string is cut after max chars. If the string is cut, the optional suffix is
added after.
2017-03-25 14:19:48 +01:00
Sébastien Helleu
83117f8d2a
core: add ternary operator (condition) in evaluation of expressions
2017-03-25 14:18:19 +01:00
Sébastien Helleu
07d16903f3
api: add dynamic string functions (string_dyn_*)
...
New functions:
- string_dyn_alloc
- string_dyn_copy
- string_dyn_concat
- string_dyn_free
2017-03-25 14:18:19 +01:00
Sébastien Helleu
0d059add9a
core: check that pointers received in arguments are not NULL in "free" functions
...
Functions:
- hdata_free
- infolist_var_free
- infolist_item_free
- infolist_free
- string_shared_free
- gui_window_objects_free
- gui_color_free
- gui_completion_free
- gui_filter_free
- gui_history_buffer_free
- gui_hotlist_free
- gui_key_free
- gui_lines_free
- gui_line_tags_free
- gui_line_free
- gui_window_tree_free
- gui_window_scroll_free
2017-03-25 14:01:50 +01:00
Sébastien Helleu
2437107e35
core: add last start date in output of command /version after at least one /upgrade ( closes #903 )
2017-02-03 22:19:20 +01:00
Sébastien Helleu
3c29cff2a5
core, alias: add xgettext comment on some command help strings
...
The help on commands /window and /alias contain percent chars, so we
have to force xgettext to NOT use "c-format", using the string
"xgettext:no-c-format".
2017-01-22 13:50:05 +01:00
Sébastien Helleu
459f58f6aa
core: add new resize prefix (h/v) and examples of resize in /help window
2017-01-22 09:27:34 +01:00
raspbeguy
1b23cd3a47
core: add resize of window parents ( closes #893 )
2017-01-22 09:27:16 +01:00
Sébastien Helleu
1361602ea5
tests: fix compilation of tests on FreeBSD 11
...
Some includes were missing in .h files, and the tests must be linked
with intl and execinfo on FreeBSD.
2017-01-13 20:57:59 +01:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
668bb3a4ad
api: add info "uptime" (WeeChat uptime)
2016-12-31 18:28:55 +01:00