Sebastien Helleu
6a5f0fbc07
core: fix crash on /reload weechat
...
The problem was introduced in commit eef3b57075
which was storing split commands inside keys themselves (for optimization).
This causes a problem when weechat.conf is reloaded, because all keys are
then deleted and created again, which removes the array of commands which
is currently used. And then it leads to a crash of WeeChat.
This commit reverts this behavior and the key commands are split when they
are executed.
2014-03-27 07:53:01 +01:00
Sebastien Helleu
03f73b8cdc
core: skip and ignore color attributes before special names like "reset" in gui_color_get_custom
2014-03-25 15:36:21 +01:00
Sebastien Helleu
92ec36eced
core: add buffer property "clear"
2014-03-25 10:55:12 +01:00
Sebastien Helleu
89160c565e
core: fix add of filter on OS X when regex for message is empty (filter regex ending with "\t")
2014-03-19 19:59:02 +01:00
Sebastien Helleu
9b380a935b
core: fix use of reserved C identifiers in headers ( closes #31 )
2014-03-19 10:39:13 +01:00
Sebastien Helleu
bc96d2f1ec
core: add key alt-j,alt-f to jump to first buffer, change command for jump to last buffer
...
New key alt-j,alt-f is bound by default to "/buffer -".
The existing key alt-j,alt-l is now bound by default to "/buffer +".
2014-03-19 10:15:57 +01:00
Sebastien Helleu
db852a3f26
core: fix "/window scroll_bottom" on a buffer with free content
...
The bug was introduced by commit 8fac1eea40
which purpose was to not scroll to the end of buffer with "/window scroll -N"
when the top of buffer is displayed.
This commit is adding the syntax "--N" to force a scroll from the end (only
used by "/window scroll_bottom").
2014-03-17 08:32:18 +01:00
Sebastien Helleu
a4a4e2f38f
core: fix compilation on SmartOS (bug #40981 , closes #23 )
2014-03-16 19:18:16 +01:00
Sebastien Helleu
907e099f86
api: allow negative value for y in function printf_y
2014-03-16 17:21:35 +01:00
Sebastien Helleu
6749ed354d
core: add decoding of bright ANSI colors (90-97, 100-107)
2014-03-15 12:09:31 +01:00
Sebastien Helleu
e38f437ad7
core: add modifier and infos to decode ANSI colors
...
New modifier:
- color_decode_ansi: convert ANSI colors to WeeChat colors (or remove colors).
New infos:
- color_ansi_regex: regex used to parse ANSI colors in a string
- color_term2rgb: convert a terminal color (0-255) to RGB
- color_rgb2term: convert a RGB color to terminal color (0-255)
2014-03-15 11:06:30 +01:00
Sebastien Helleu
a97bcd1ca1
core: add functions to convert RGB to terminal color (and vice versa)
2014-03-14 19:16:13 +01:00
Sebastien Helleu
9c838d2628
api: add support of case insensitive search and search by buffer full name in function buffer_search (bug #34318 )
2014-03-11 15:07:36 +01:00
Sebastien Helleu
8fac1eea40
core: fix "/window scroll -N" on a buffer with free content
2014-03-07 17:46:51 +01:00
Sebastien Helleu
dc2365104f
core: add option weechat.look.hotlist_add_conditions, remove option weechat.look.hotlist_add_buffer_if_away
2014-03-06 19:29:08 +01:00
Sebastien Helleu
0084eaa193
core: replace constant by sizeof in a call to snprintf
2014-02-27 09:44:59 +01:00
Sebastien Helleu
c8cd6c4639
core: fix size used in some snprintf
2014-02-26 09:17:20 +01:00
Sebastien Helleu
a0651e11bd
core: fix memory leak in function gui_key_add_to_infolist (in case of insufficient memory)
2014-02-22 15:22:27 +01:00
Sebastien Helleu
b8f07e935a
core: remove dead assignment in function gui_key_pressed
2014-02-22 15:16:31 +01:00
Sebastien Helleu
b04fead1ab
core: remove dead assignment in function gui_bar_window_draw
2014-02-22 15:07:59 +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
47d89ce201
core: fix use of invalid pointer in function gui_bar_window_content_alloc (in case of insufficient memory)
2014-02-22 12:57:01 +01:00
Sebastien Helleu
0110f81e88
core: fix potential NULL pointer in function gui_color_emphasize
2014-02-22 12:07:43 +01:00
Sebastien Helleu
f907ea17d5
Merge branch 'trigger'
2014-02-21 15:36:14 +01:00
Sebastien Helleu
39be4e3387
core: add bare display mode (for easy text selection and click on URLs)
...
New key: alt+"!", to swith to bare display (same key to come back to
standard display).
New options:
- weechat.look.bare_display_exit_on_input (default: on): by default
any changes in input will return to standard display
- weechat.look.bare_display_time_format (default: "%H:%M"): the format
of time used in bare display.
2014-02-16 11:29:03 +01:00
Sebastien Helleu
e782020b14
core: fix completion template used in command completion when first argument in template has pipes
2014-02-14 14:50:31 +01:00
Sebastien Helleu
ec9adea198
core: use item "buffer_last_number" instead of "buffer_count" by default in status bar
2014-02-13 22:34:20 +01:00
Jason A. Donenfeld
c324610226
core: fix freeze/crash in gnutls (bug #41576 )
...
The link is now made against pthread on all platforms.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2014-02-13 16:09:35 +01:00
Sebastien Helleu
f324a1589d
core: add signals "key_combo_{default|search|cursor}"
2014-02-11 20:09:02 +01:00
Sebastien Helleu
eef3b57075
core: split key command when the key is created (improve speed when executing commands of a key)
2014-02-10 21:10:45 +01:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00
Sebastien Helleu
30942f7f62
trigger: add trigger plugin
2014-02-09 12:55:40 +01:00
Sebastien Helleu
43fb54f51d
core: fix apply of layout when buffers that are not in layout are before some buffers in layout
...
Now when a layout is applied, the buffers in layout are inserted/sorted
first in the new list. Then the other buffers (not in layout) are added
after this loop, and then they are added after all layout buffers.
2014-02-07 17:07:45 +01:00
Sebastien Helleu
0ffb61617a
core: fix hotlist problems after apply of a layout (bug #41481 )
...
This commit fixes a problem when computing the value of "num_displayed"
in all buffers. For merged buffers (with same number), the num_displayed
of each merged buffer must be incremented (and not only the current
active buffer).
2014-02-06 15:17:00 +01:00
Sebastien Helleu
b91378fedc
core: use structure itself for sizeof in two malloc
2014-02-04 08:34:05 +01:00
Sebastien Helleu
6c47428e78
core: fix compilation on Android (replace include of sys/termios.h by termios.h) (bug #41434 )
2014-02-02 15:12:37 +01:00
Sebastien Helleu
01fb345fe0
core: fix compilation on Android (replace calls to rindex by strrchr) (bug #41420 , patch #8301 )
2014-02-02 09:00:46 +01:00
Sebastien Helleu
9db356bd9b
core: fix crash when creating two bars with same name but different case (bug #41418 )
2014-02-01 09:12:51 +01:00
Sebastien Helleu
1b2f4108fd
core: fix display of read marker when all buffers line are unread
...
The bug is when all buffer lines are unread (so "last_read_line" pointer
is NULL), and that the option weechat.look.read_marker_always_show is on.
The read marker was displayed at bottom after switch to the buffer.
Thanks to Nils Görs.
2014-01-27 18:32:32 +01:00
Sebastien Helleu
48797574ff
core: revert the rename of option weechat.look.save_layout_on_exit
2014-01-22 18:50:24 +01:00
Sebastien Helleu
79f2f46dec
core: rename option weechat.look.save_layout_on_exit to weechat.look.store_layout_on_exit, replace "save" by "store" for layouts
2014-01-21 22:03:12 +01:00
Sebastien Helleu
5c661a497f
core: delay the signal "signal_sigwinch" after WeeChat screen refresh
...
The signal is sent after WeeChat screen refresh, so all sizes for
windows, bars, ... are already adjusted to the new terminal size.
2014-01-21 14:19:12 +01:00
Sebastien Helleu
5d1568ecc2
core: add signals "signal_sighup" and "signal_sigwinch" (terminal resized)
2014-01-21 14:06:57 +01:00
Sebastien Helleu
4da8fcf34d
core: add command /print
2014-01-19 23:29:00 +01:00
Sebastien Helleu
4b7e90c679
core: add option weechat.look.tab_width
2014-01-15 15:10:54 +01:00
Sebastien Helleu
846dde00aa
core: fix crash with hdata_update on shared strings, add hdata type "shared_string" (bug #41104 )
2014-01-05 14:37:27 +01:00
Sebastien Helleu
d48896cfa4
core: replace calls to sprintf() with snprintf()
2014-01-05 10:44:53 +01:00
Sebastien Helleu
a571d599d3
core: fix compilation warnings on OpenBSD
...
On OpenBSD, the variable "tv_sec" in struct timeval has type "long"
(type "time_t" under Linux).
So we need to copy this value to a temporary variable before using its
pointer with function localtime().
2014-01-05 10:42:49 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
d364298d75
core: fix unneeded shift of buffer numbers when a buffer with layout is created and merged
2013-12-31 23:58:55 +01:00