Sebastien Helleu
d0832cd50e
core: replace default key ctrl+"c", "u" by ctrl+"c", "_" for underlined text in messages
2013-12-01 18:39:05 +01:00
Sebastien Helleu
d3799b4616
core: replace default key ctrl+"c", "r" by ctrl+"c", "v" for reverse video in messages
2013-12-01 11:30:52 +01:00
Sebastien Helleu
c8a479453d
core: add missing access to hdata "buffer_visited"
2013-12-01 08:46:07 +01:00
Sebastien Helleu
9a160509d7
core: fix random crash when closing a buffer
...
The problem happened because we used a pointer to a
"struct t_gui_buffer_visited" for the switch to another buffer,
when the buffer is closed. This is executed in all windows displaying
the buffer, but on each switch to buffer, the visited buffers are
updated and therefore the address can change. The pointer becomes
invalid, and WeeChat still uses it on next windows for the buffer
switch.
It happened rarely because the visited buffer is freed and allocated
immediately after, so the address is often the same in memory.
Thanks to silverd for the tests on OS X to track the problem.
2013-12-01 08:37:22 +01:00
Sebastien Helleu
7e14c60f4d
core: revert check of layout when switching to a buffer using value "auto" in buffer_set
...
This reverts commits 14cf7bd20f and
262dff4b87 .
The initial fix was for a problem with irc autojoin and layout: the
current window has not appropriate buffer (as defined in layout) if it
is not the latest channel in "autojoin" option.
So the way to fix this problem is to set the value of option
irc.look.buffer_switch_autojoin to off.
2013-11-28 19:59:36 +01:00
Sebastien Helleu
0b94d3c3bc
core: free nicklist data (for hsignal) on exit
2013-11-23 16:20:19 +01:00
Sebastien Helleu
6716985d27
core: fix current color/background after reset of color
...
Bug was visible with such colored string in IRC:
^Cc7,5 one ^Cc ^Cc7 two
Before the fix, the word "two" had a red background.
The "^Cc" should reset both color + background, so now it does not have
a background any more.
2013-11-19 19:58:10 +01:00
Sebastien Helleu
fba9839587
core: use #ifdef to check if versions are defined in signal "debug_libs"
2013-11-18 14:31:26 +01:00
Sebastien Helleu
3b53a3a8be
core: remove "v" before versions displayed by /debug libs
2013-11-18 07:46:14 +01:00
Sebastien Helleu
8d64b658df
core: add option "libs" for command /debug, add signal "debug_libs"
2013-11-17 20:49:37 +01:00
Sebastien Helleu
70ed2a8189
core: apply color attributes when clearing a window (patch #8236 ) (patch from Tom Alsberg)
2013-11-14 19:41:28 +01:00
Sebastien Helleu
725c5aaeb9
core: fix truncated text when pasting several long lines (bug #40210 )
2013-11-12 21:37:51 +01:00
Sebastien Helleu
e867298233
core: fix terminal title under screen/tmux
2013-11-09 19:26:33 +01:00
Sebastien Helleu
90774b73d8
core: rename option weechat.look.set_title to weechat.look.window_title (evaluated string)
2013-11-09 17:07:02 +01:00
Sebastien Helleu
9b4eb6d607
core: add bar item "buffer_zoom", add signals "buffer_{zoomed|unzoomed}" (patch #8204 ) (patch from Nils Görs)
2013-11-09 13:21:56 +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
e2605cf77b
core: fix highlight on action messages: skip the nick at beginning to prevent highlight on it (bug #40516 )
2013-11-08 18:22:36 +01:00
Sebastien Helleu
b6e4f918f5
core: add default keys alt+home/end and alt+F11/F12 for xterm
2013-11-05 21:46:25 +01:00
Sebastien Helleu
dd32052fec
core: add support of italic text (requires ncurses >= 5.9 patch 20130831)
2013-11-02 10:58:38 +01:00
Sebastien Helleu
cf81a6dfcd
core: use ncurses include path when compiling with cmake
2013-11-02 09:43:20 +01:00
Sebastien Helleu
14cf7bd20f
core: fix auto-apply of window layout in current window when option irc.look.buffer_switch_autojoin is on
2013-10-27 11:07:33 +01:00
Sebastien Helleu
53ec644ce1
core: fix truncated prefix when filters are toggled (bug #40204 )
2013-10-19 16:21:20 +02:00
Sebastien Helleu
2bde9453ed
core: use one date format when day changes from day to day+1
2013-10-10 19:42:11 +02:00
Sebastien Helleu
07115ef3d0
core: add options to customize default text search in buffers
...
New options:
- weechat.look.buffer_search_case_sensitive (boolean, off by default)
- weechat.look.buffer_search_force_default (boolean, off by default)
- weechat.look.buffer_search_regex (boolean, off by default)
- weechat.look.buffer_search_where (prefix, message (by default), prefix_message)
2013-10-06 11:59:42 +02:00
Sebastien Helleu
7bf712d4c9
core: fix display of read marker after buffer switch when there is no line displayed after (only filtered lines)
2013-10-05 10:19:48 +02:00
Sebastien Helleu
32f2ec42c6
core: replace some code by calls to function gui_chat_clrtoeol()
2013-10-02 16:24:03 +02:00
Sebastien Helleu
437ebb69d4
core: clear whole line before displaying content instead of clearing after the end of content (bug #40115 )
2013-09-30 19:26:09 +02:00
Sebastien Helleu
15173364c0
core: fix display of read marker (as horizontal line) or day change message after last buffer line when scrolling (bug #40126 )
2013-09-30 16:02:02 +02:00
Sebastien Helleu
ad5a287134
core: fix extension (.exe) of symbolic link "weechat-curses" under Cygwin
2013-09-23 18:07:15 +02:00
Sebastien Helleu
92019c300c
core: replace some calls to ncurses *printw functions by *addstr
2013-09-23 13:07:45 +02:00
Sebastien Helleu
9c36b7c693
core: rename options weechat.look.day_change_message(2) to weechat.look.day_change_message_{1date|2dates}
2013-09-03 10:27:14 +02:00
Sebastien Helleu
0409faee7f
Merge branch 'shared-strings'
2013-09-02 15:24:20 +02:00
Sebastien Helleu
0d8bd7f1e6
core: add option weechat.look.day_change_message2
...
The new option weechat.look.day_change_message2 is used to display day change
between two messages, with two dates: the new one, and the old one.
Example:
-- Mon, 02 Sep 2013 (Thu, 22 Aug 2013) --
2013-09-02 08:39:06 +02:00
Sebastien Helleu
0806f1ad7e
core: fix automatic scroll to bottom of buffer when day change is displayed before first line of buffer
2013-08-28 23:27:04 +02:00
Sebastien Helleu
03b6b4c1cf
core: display day change message dynamically (do not store it as a line in buffer) (task #12775 )
...
Changes in options:
- rename option weechat.look.day_change_time_format to weechat.look.day_change_message
(color codes are allowed in this option)
- new option weechat.color.chat_day_change.
2013-08-25 09:39:59 +02: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
b47af3c61e
core: fix buffer returned in focus info for bar items with a forced buffer
2013-08-20 11:42:12 +02:00
Sebastien Helleu
eac1ca929b
core: add syntax "@buffer:item" in bar items to force the buffer used when displaying the bar item (task #12717 )
2013-08-19 21:22:10 +02:00
Sebastien Helleu
a4f789810a
core: use shared strings for groups/nicks in nicklist
2013-08-17 18:14:31 +02:00
Sebastien Helleu
af12457a13
core: use shared strings for prefix on lines
...
It can reduce by about 10% the memory used for lines in a buffer.
2013-08-17 17:47:38 +02:00
Sebastien Helleu
600ee3ddf3
core: add search of regular expression in buffer, don't reset search type on a new search, select where to search (messages/prefixes)
...
Key changed in search context:
- ctrl+"r": switch search type: string/regex
New keys in search context:
- alt+"c": case (in)sensitive search
- tab: search in messages/prefixes/both
2013-08-17 11:51:50 +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
674403f734
core: use shared strings for tags on lines
...
It can reduce by about 30% the memory used for lines in a buffer.
2013-08-10 18:20:49 +02:00
Sebastien Helleu
6714d6fc82
core: optimize the removal of lines in buffers (a lot faster to clear/close buffers with lot of lines)
...
The update of variables "buffer_max_length" and "prefix_max_length" in struct
t_gui_lines is now delayed and made during the main refresh (in main loop).
For a buffer with 50K lines, it is up to 3300 times faster to clear/close it.
For a buffer with 4096 lines (default limit), it is up to 120 times faster.
2013-08-10 17:18:12 +02:00
Sebastien Helleu
72c1af25e0
core: set "callback_free_value" directly in hashtable without calling function hashtable_set_pointer
2013-08-09 22:54:06 +02:00
Sebastien Helleu
766273ac99
core: remove symbolic link "weechat-curses" on make uninstall (cmake and autotools)
2013-08-07 10:20:42 +02:00
Sebastien Helleu
e5de0cd0e8
core: fix typo in comment for creation of symbolic link "weechat-curses"
2013-08-07 09:32:37 +02:00
Sebastien Helleu
3a2d2d6b03
core: use $DESTDIR when creating symbolic link "weechat-curses" with cmake
2013-08-06 20:57:23 +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
dc878c5b69
api: add argument "options" in function string_eval_expression, add option "-c" for command /eval (to evaluate a condition)
2013-08-04 08:56:56 +02:00