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
28df18379f
core: save/restore buffer property "clear" on /upgrade
2014-03-25 11:47:46 +01:00
Sebastien Helleu
3375db7720
core: save/restore buffer property "day_change" on /upgrade
2014-03-25 11:44:57 +01:00
Sebastien Helleu
babb3abff4
exec: allow clear of new buffers with /buffer clear
2014-03-25 10:56:05 +01:00
Sebastien Helleu
92ec36eced
core: add buffer property "clear"
2014-03-25 10:55:12 +01:00
Sebastien Helleu
8deb0d3612
exec: add options -nf and -cl/-nocl in command /exec
...
-nf: create a new buffer with free content
-cl: clear new buffer
-nocl: append in new buffer
2014-03-25 09:25:47 +01:00
Sebastien Helleu
966a2f4fb4
irc: fix notify message: "joined" -> "connected"
2014-03-24 14:34:09 +01:00
Sebastien Helleu
aad5765e35
irc: replace "user" by "nick" in description of commands
2014-03-22 10:05:45 +01:00
Sebastien Helleu
73576b49d0
irc: fix arguments in /help unquiet: at least one nick/host is required
2014-03-22 10:01:25 +01:00
Sebastien Helleu
262340ba19
irc: update description of some commands
2014-03-22 09:55:13 +01:00
Sebastien Helleu
c9116e4982
irc: add command /unquiet ( closes #36 )
2014-03-22 09:30:04 +01:00
Sebastien Helleu
e2798b2cf2
core: fix typo in /help command
2014-03-21 14:32:09 +01:00
Sebastien Helleu
3a6313c4b5
api: add support of nested variables in function string_eval_expression and command /eval ( closes #35 )
2014-03-20 15:57:46 +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
b09fbea954
irc: fix typo in /help allpv
2014-03-19 19:24:35 +01:00
Sebastien Helleu
63b474013e
irc: add command /allpv (task #13111 )
2014-03-19 19:13:41 +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
f82fe29ac3
core: update the message displayed on crash
...
Add a reference to user's guide, do not ask user to send the crash log
file any more (it may have private data and is not needed in most cases).
2014-03-18 15:22:15 +01:00
Sebastien Helleu
387cc5048a
irc: fix truncated read on socket with SSL (bug #41558 )
...
If there are still data on socket with SSL
(if gnutls_record_check_pending(session) returns > 0), then call
gnutls_record_recv() again to read all available data.
The problem was that some data remained in the gnutls buffers and the recv
callback was not called any more (nothing available on raw socket).
2014-03-18 13:27:18 +01:00
Sebastien Helleu
ffb0ec47c2
core: check validity of buffer pointer when data is sent to a buffer
2014-03-18 12:08:11 +01:00
Sebastien Helleu
476729b897
core: fix crash when buffer is closed during execution of multiple commands ( closes #27 )
2014-03-18 11:50:44 +01:00
Sebastien Helleu
f09e1c136c
core: remove trailing space in log message when writing a configuration file
2014-03-18 09:25:15 +01:00
Sebastien Helleu
d6fbe95090
trigger: set default variable "tg_remaining_calls" for regex in timer callback
2014-03-17 18:23:11 +01:00
Sebastien Helleu
63c2915e3c
irc: fix typo in /help kickban
2014-03-17 17:23:55 +01:00
Sebastien Helleu
30de830982
exec: don't use shell by default when executing commands (for security reasons)
...
It is possible to force shell by default with this command:
/set exec.command.default_options "-sh"
2014-03-17 14:59:00 +01:00
Sebastien Helleu
e84eaafe8e
script: set option script.scripts.cache_expire to 1440 by default
2014-03-17 12:59:46 +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
d920f87455
core: fix some compilation problems on SmartOS
2014-03-16 17:46:56 +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
fa28d23c4d
ruby: fix crash when trying to load a directory with /ruby load
2014-03-16 16:49:41 +01:00
Sebastien Helleu
6981a17bbb
exec: add example with option "-pipe" in /help exec
2014-03-16 10:29:07 +01:00
Sebastien Helleu
9a51449ee6
exec: add return code ("rc") in hashtable sent with option "-hsignal"
2014-03-16 10:08:08 +01:00
Sebastien Helleu
fcf5e84fa4
exec: add values "irc" and "weechat" for option "-color", replace "decode" by "auto"
2014-03-16 09:52:44 +01:00
Sebastien Helleu
ffba715ea1
exec: add options "-pipe" and "-hsignal" in command /exec
2014-03-16 09:37:45 +01:00
Sebastien Helleu
7afd013665
trigger: fix build of hashtable in hsignal callback when values have type "string"
2014-03-16 08:50:24 +01:00
Sebastien Helleu
11f2f5d3e4
exec: do not create/switch to buffer with option "-bg"
2014-03-15 19:48:37 +01:00
Sebastien Helleu
4245de528e
exec: add examples in /help exec
2014-03-15 19:40:15 +01:00
Sebastien Helleu
ff636cae89
exec: fix typo in /help exec
2014-03-15 19:22:28 +01:00
Sebastien Helleu
112398ee62
exec: fix compilation on OpenBSD
...
Looks like the variable name "stdout" is a problem on OpenBSD (macro?).
So "stdout" and "stderr" are renamed to "out" an "err".
2014-03-15 15:56:58 +01:00
Sebastien Helleu
fff24d0a23
core: update translations
2014-03-15 15:08:49 +01:00
Sebastien Helleu
c92b186e01
exec: rename value "off" to "ansi" for option "-color" in command /exec
2014-03-15 12:43:06 +01:00
Sebastien Helleu
85abcaedaa
Merge branch 'exec'
2014-03-15 12:28:07 +01:00
Sebastien Helleu
0bfbe8ef40
irc: add decoding of bright ANSI colors (90-97, 100-107)
2014-03-15 12:09:51 +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
298f0211c1
exec: add option "-color" in command /exec (decode ANSI colors by default)
...
The ANSI colors are decoded by default to WeeChat colors (for local display),
or IRC colors (if output is sent to buffer with "-o").
2014-03-15 11:30:08 +01:00
Sebastien Helleu
d3c85c920c
irc: add modifier "irc_color_decode_ansi"
2014-03-15 11:12:49 +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