Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
e1a4612797
core: ignore color codes in ${length:xxx} and ${lengthscr:xxx}
2019-09-21 13:54:36 +02:00
Sébastien Helleu
9178156354
api: add argument "strip_items" in function string_split
2019-06-15 20:47:14 +02:00
Sébastien Helleu
2b70d71aa1
core: replace argument "keep_eol" by "flags" in function string_split ( closes #1322 )
2019-03-10 18:29:16 +01:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +01:00
Sébastien Helleu
4712d0bb06
core: use https for links to GNU GPL license
2018-11-29 23:16:07 +01:00
Sébastien Helleu
8abd05fe3d
core: replace "long unsigned int" by "unsigned long"
2018-10-01 22:21:25 +02:00
Sébastien Helleu
6ca2408c99
core: fix weechat_print modifier
...
All changes:
- always send the Tab char in the weechat_print modifier string
- handle special cases in weechat_print modifier: no prefix (" \t...") or no
date ("\t\t...")
2018-08-16 18:19:07 +02:00
Sébastien Helleu
f10578b18b
core: remove use of pointer "buffer" once the line has been initialized
2018-08-15 16:16:31 +02:00
Sébastien Helleu
8c47ca6926
core: add comments in function to print a line
2018-08-15 12:17:42 +02:00
Sébastien Helleu
7b0cced319
core: fix destruction of line prefix in weechat_print modifier
2018-08-15 12:16:52 +02:00
Sébastien Helleu
8e939b089d
core: fix comparison of strings in weechat_print modifier
2018-08-15 12:16:06 +02:00
Sébastien Helleu
42be1a74a0
api: add function hook_line
2018-08-12 21:45:00 +02:00
Sébastien Helleu
7ee88fb46c
core: fix some styles
2018-01-07 09:11:45 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
5aab494dd6
core, plugins: check return code of strftime function
2017-09-23 15:06:28 +02:00
Sébastien Helleu
3045021430
core: fix cut of chars in "cutscr" of evaluated strings
...
This fixes two problems:
- stop before max char displayed with wide chars
- preserve combining chars in the output
Before the fix (wrong):
>> ${cutscr:3,+,こんにちは世界}
== [こん+]
>> ${cutscr:1,+,a${\u0308}}
== [a+]
After the fix (OK):
>> ${cutscr:3,+,こんにちは世界}
== [こ+]
>> ${cutscr:1,+,a${\u0308}}
== [ä]
2017-03-28 20:45:31 +02:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01: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
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
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01: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
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
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
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
7310a7e398
core: fix modifier "weechat_print": discard only one line when several lines are displayed in same message ( closes #171 )
...
When several lines are displayed in a message (separated by "\n"), the
modifier "weechat_print" will now discard just one line (if return value is
an empty string), instead of discarding the whole message.
2014-08-19 19:56:12 +02:00
Sébastien Helleu
02eed97d97
relay: fix crash when closing relay buffers ( closes #57 , closes #78 )
...
A flag "closing" has been added in buffers. It is set to 1 when the buffer
is closing, and then no more printf is allowed in the buffer (a message
printed on relay buffer was causing a crash when it is closed).
2014-05-24 18:57:29 +02:00
Sebastien Helleu
907e099f86
api: allow negative value for y in function printf_y
2014-03-16 17:21:35 +01:00
Sebastien Helleu
7191114104
core: remove dead assignment in function gui_chat_printf_y
2014-02-22 13:39:52 +01:00
Sebastien Helleu
4b7e90c679
core: add option weechat.look.tab_width
2014-01-15 15:10:54 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
95adb3a04b
core: fix text emphasis with wide chars on screen like japanese (patch #8253 ) (patch from Ryuunosuke Ayanokouzi)
2013-12-11 12:48:32 +01:00
Sebastien Helleu
cce23613a7
core: display lines waiting for buffer on exit (in case of early exit)
2013-11-09 08:55:57 +01:00
Sebastien Helleu
73f2c2c488
core: fix uncontrolled format string when displaying bufferized lines on startup (lines waiting for core buffer)
2013-08-22 23:06:30 +02:00
Sebastien Helleu
c624960336
core: add text emphasis in messages when searching text in buffer
...
New options:
- weechat.look.emphasized_attributes
- weechat.color.emphasized
- weechat.color.emphasized_bg
2013-08-16 16:16:37 +02:00
Sebastien Helleu
8ca36552ea
core: change color format for options from ${xxx} to ${color:xxx}
...
Options affected:
- weechat.look.buffer_time_format
- weechat.look.prefix_action
- weechat.look.prefix_error
- weechat.look.prefix_join
- weechat.look.prefix_network
- weechat.look.prefix_quit
2013-08-04 12:18:47 +02:00
Sebastien Helleu
ca1e0dde07
core: use default value for prefixes used in messages displayed before the interface is initialized
2013-07-27 22:31:36 +02:00
Sebastien Helleu
37b8aef96d
core: move test of invalid UTF-8 char length from gui-chat.c to wee-utf8.c
2013-06-29 16:10:09 +02:00
Sebastien Helleu
f4e4f55de1
core: fix display bugs with some UTF-8 chars that truncates messages displayed
...
Example of char causing problems: U+26C4 (snowman without snow)
2013-06-29 13:43:27 +02:00
Sebastien Helleu
91017cb06c
core: remove extra space after empty prefix (when prefix for action, error, join, network or quit is set to empty string) (bug #39218 )
2013-06-10 11:48:49 +02:00
Sebastien Helleu
3e1d811761
core: fix refresh of item "completion" (bug #38214 ) (patch from Nils Görs)
...
The item is now cleared after any action that is changing content of command
line and after switch of buffer.
2013-03-17 19:44:39 +01:00
Sebastien Helleu
cb617d8b23
core: fix hidden lines for messages without date when option weechat.history.max_buffer_lines_minutes is set (bug #38197 )
2013-01-29 19:31:04 +01:00
Sebastien Helleu
f14f34e9af
core: fix display bugs with non-printable chars like tabs (part of messages not displayed) (bug #38076 )
...
This bug was introduced by commit 70ce7fe3b6 .
2013-01-14 11:35:52 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00
Sebastien Helleu
7eb5cc4b97
core: move comments with description of C file to top of files
2012-12-15 12:27:57 +01:00
Sebastien Helleu
7d34812f1c
core: reformat comments for functions
2012-12-13 18:51:44 +01:00
Nils Görs
2ae8d81b1f
core: add color support in options weechat.look.prefix_{action|error|join|network|quit} (task #9555 )
2012-12-01 16:03:20 +01:00
Sebastien Helleu
72959d1d8b
core: fix display of combining chars (patch from Nei) (bug #37775 )
2012-11-30 18:16:49 +01:00