Sébastien Helleu
018b969381
core: fix deadlock when quitting after a signal is received ( closes #32 )
...
The code in signal handers (SIGHUP, SIGQUIT, SIGTERM) is moved into main
loop, this hopefully fixes the deadlock when quitting after receiving
one of these signals.
The code in SIGWINCH signal handler is moved too (even if it shouldn't
be a problem).
2016-11-13 16:07:24 +01:00
Sébastien Helleu
570f4817dd
core: fix display of empty lines in search mode ( closes #829 )
2016-10-29 17:18:28 +02:00
Sébastien Helleu
997f47f77a
core: fix integer overflow in calls to realloc (issue #809 )
2016-10-08 13:10:56 +02:00
Sébastien Helleu
485aff59c4
core: fix realloc in function gui_input_optimize_size (issue #809 )
...
This could cause crash in case of memory allocation error
(but WeeChat would probably crash or have problems anyway if there's not
enough memory for the input line).
2016-10-08 12:46:34 +02:00
Sébastien Helleu
e0c5507a7f
core: replace "clipboard" by "internal clipboard" in /help input and user's guide
2016-09-08 21:21:44 +02:00
Sébastien Helleu
0572d0c4f5
core: evaluate content of option "weechat.look.item_time_format" (issue #791 )
2016-09-03 08:28:05 +02:00
Sébastien Helleu
a01ecb276f
core: add optional argument "lowest", "highest" or level mask in command /input hotlist_clear
2016-08-16 21:22:28 +02:00
Sébastien Helleu
7447b81f87
core: fix NULL pointer derefence in case of memory error in gui_buffer_input_buffer_init()
2016-08-13 14:51:09 +02:00
Sébastien Helleu
eb86def400
core: rename function string_iconv_fprintf to string_fprintf
2016-07-09 18:28:03 +02:00
Sébastien Helleu
51c3e0b9ec
api: add support of functions in hook_process
2016-04-23 13:59:20 +02:00
Sébastien Helleu
fabd48cc6c
core: move nick coloring from irc plugin to core ( closes #262 )
...
Options moved from irc.conf to weechat.conf:
* "irc.look.nick_color_force" moved to "weechat.look.nick_color_force"
* "irc.look.nick_color_hash" moved to "weechat.look.nick_color_hash"
* "irc.look.nick_color_stop_chars" moved to
"weechat.look.nick_color_stop_chars"
New info (for API function "info_get"):
* "nick_color" (replaces "irc_nick_color")
* "nick_color_name" (replaced "irc_nick_color_name")
Info "irc_nick_color" and "irc_nick_color_name" are now deprecated.
And a bug has been fixed in nick coloring: stop chars are removed before
looking at a forced color.
2016-04-05 07:56:43 +02:00
Sébastien Helleu
cf6aca1619
core: add pointer in some callbacks ( closes #406 )
...
This pointer is the first argument received by callbacks, and the
existing argument "data" is now automatically freed by WeeChat when the
object containing the callback is removed.
With this new pointer, the linked list of callbacks in scripts has been
removed. This will improve speed of scripts (using a lot of hooks),
reduce memory used by scripts and reduce time to unload scripts.
Following functions are affected in the C API:
* exec_on_files
* config_new
* config_new_section
* config_new_option
* hook_command
* hook_command_run
* hook_timer
* hook_fd
* hook_process
* hook_process_hashtable
* hook_connect
* hook_print
* hook_signal
* hook_hsignal
* hook_config
* hook_completion
* hook_modifier
* hook_info
* hook_info_hashtable
* hook_infolist
* hook_hdata
* hook_focus
* unhook_all_plugin
* buffer_new
* bar_item_new
* upgrade_new
* upgrade_read
2016-03-21 18:11:21 +01:00
Sébastien Helleu
cf93e953b6
core: use ${info:term_width} instead of ${window.win_width} in /help weechat.bar.xxx.conditions ( closes #703 )
2016-03-17 21:00:16 +01:00
Sébastien Helleu
14e5fc6092
core: check that pointers received in arguments are not NULL in buffers and windows functions
2016-02-28 14:07:33 +01:00
Sébastien Helleu
64ef7e8621
core: fix truncation of buffer names in hotlist ( closes #668 )
2016-02-16 10:19:57 +01:00
Sébastien Helleu
0e6a6a0334
core: move irc bar item "away" and two options to core ( closes #692 )
...
Options moved:
* "irc.look.item_away_message" --> "weechat.look.item_away_message"
* "irc.color.item_away" --> "weechat.color.item_away".
2016-02-15 13:36:16 +01:00
Sébastien Helleu
c9a8f23cc7
core: fix update of window title under tmux ( closes #685 )
2016-02-07 14:07:51 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
c4e3d66ba5
core: add a parent name in options ( closes #629 )
...
Inherited values are now displayed in /set output when the value is
null, if a parent option name is defined in option.
New option: weechat.color.chat_value_null
2015-12-24 07:53:37 +01:00
Sébastien Helleu
fab0d4e740
core: add option weechat.look.paste_auto_add_newline ( closes #543 )
2015-10-03 12:08:30 +02:00
Sébastien Helleu
8688c48e42
core: display a more explicit error when a filter fails to be added ( closes #522 )
2015-09-09 09:22:40 +02:00
Sébastien Helleu
e179a34a40
core: fix truncated messages after a word with a length of zero on screen (bug #40985 , issue #502 )
2015-08-23 09:50:36 +02:00
Sébastien Helleu
46a9d17ac3
api: add argument "length" in function utf8_is_valid()
2015-08-18 07:36:48 +02:00
Sébastien Helleu
5c5df1b068
core: factorize functions to search text in window
2015-07-26 19:49:35 +02:00
Sébastien Helleu
8e6f525b59
Merge remote-tracking branch 'origin/pr/393'
2015-07-26 11:30:03 +02:00
Sébastien Helleu
74f1592f21
core: add option weechat.look.key_grab_delay to set the default delay when grabbing a key with alt-k
2015-07-26 09:45:40 +02:00
Sébastien Helleu
7572fec261
core: flush stdout/stderr after sending text directly on them (fix corrupted data sent to hook_process() callback) ( closes #442 )
2015-07-25 09:16:08 +02:00
Sébastien Helleu
b99a630705
core: allow execution of command "/input return" on a buffer which is not displayed in a window
2015-07-25 08:20:18 +02:00
Simmo Saan
6e117a1caf
core: allow jump from current to previous buffer with default keys "alt-j NN"
2015-07-24 07:27:18 +02:00
Sébastien Helleu
3b2ee85b04
core: fix crash if a file descriptor used in hook_fd() is too high (> 1024 on Linux/BSD) ( closes #465 )
...
The calls to select() are replaced by poll(), which doesn't have limitation
on file descriptor number.
2015-07-18 20:03:34 +02:00
Sébastien Helleu
b2f0cc30ff
core: fix type of value returned by function gui_bar_window_content_get
2015-07-05 08:32:43 +02:00
Sébastien Helleu
0fb8ac9e7b
core: fix type of value returned by function gui_mouse_grab_event2input
2015-07-04 16:38:26 +02:00
Sébastien Helleu
0c79b2fda8
core: fix type of value returned by functions gui_chat_string_next_char, gui_chat_string_add_offset and gui_chat_string_add_offset_screen
2015-07-04 16:32:18 +02:00
Sébastien Helleu
4ecd8a505f
api: fix type of value returned by functions utf8_prev_char, utf8_next_char and utf8_add_offset
2015-07-04 08:39:55 +02:00
Sébastien Helleu
bd850398e8
core: add missing comments before functions when the result must be freed after use
2015-07-04 08:24:53 +02:00
Sébastien Helleu
b13db0305d
api: fix type of value returned by function strcasestr
2015-07-03 19:45:51 +02:00
Sébastien Helleu
7fabe8c2a2
core: allow ctrl-C to exit WeeChat when the passphrase is asked on startup ( closes #452 )
2015-06-28 09:16:24 +02:00
Sébastien Helleu
ecc3a2aeb6
core: fix display of invalid UTF-8 chars in bars (issue #218 )
2015-06-27 17:31:30 +02:00
Sébastien Helleu
422958337b
core: fix bar item "scroll" after /buffer clear ( closes #448 )
2015-06-22 20:09:52 +02:00
Sébastien Helleu
60ec9d5d51
core: fix display of time in bare display when option weechat.look.buffer_time_format is set to empty string ( closes #441 )
...
This reverts commit 2498ff63db .
2015-06-14 14:11:15 +02:00
Sébastien Helleu
8d25cd5d34
core: fix compilation on Cygwin
...
The header sys/select.h is now required for select() function.
2015-05-01 09:54:07 +02:00
Sébastien Helleu
71dd64678c
core: add comments after some #endif
2015-04-30 21:15:30 +02:00
Sébastien Helleu
908bde8ac2
core: remove extra spaces in function gui_bar_item_default_mouse_status
2015-04-26 17:06:39 +02:00
Sébastien Helleu
d322389e04
core: add support of full color option name in command /eval and API function string_eval_expression()
2015-04-26 10:29:30 +02:00
Sébastien Helleu
0f333ee630
api: add support of full color option name in function color()
2015-04-26 10:29:22 +02:00
Sébastien Helleu
6c4c4a37fd
core: display the welcome message immediately after the startup message, move source code to weechat.c
2015-04-25 08:38:44 +02:00
Sébastien Helleu
60f2b50117
core: add options weechat.look.quote_{nick_prefix|nick_suffix|time_format} to customize quoted messages in cursor mode ( closes #403 )
2015-04-19 12:02:41 +02:00
Sébastien Helleu
df31147e16
api: add "_chat_line" (line pointer) in hashtable of hook_focus
2015-04-19 10:22:53 +02:00
Sébastien Helleu
32d165f1c4
core: add a welcome message on first WeeChat run ( closes #318 )
2015-04-17 07:57:31 +02:00
Simmo Saan
b87c52240b
core: add more intuitive buffer searching ( closes #76 )
2015-04-12 10:25:09 +03:00