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
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
663de42284
Merge branch 'secured-data'
2013-08-02 19:19:25 +02:00
Sebastien Helleu
fd5fc2e5a3
core: add platform-dependent extension on "weechat-curses" link (so that link is "weechat-curses.exe" on cygwin)
2013-08-02 18:40:40 +02:00
Sebastien Helleu
996da2f662
core: rename binary and man page from "weechat-curses" to "weechat" (task #11027 )
...
A symbolic link weechat-curses -> weechat is now created (by both cmake and
configure), so that the /upgrade will work from an old version.
However, if you upgrade from an old version, it is recommended to force the use
of the new binary name with the command: `/upgrade /path/to/weechat` (replace
the path accordingly).
2013-08-02 08:54:16 +02:00
Sebastien Helleu
c0c76ad995
core: do not scroll when using /window {page_down|scroll_down} after /window scroll_beyond_end
2013-07-31 19:09:31 +02:00
Sebastien Helleu
91b7aec855
core: reset scroll after /window {page_down|scroll_down} if last line of buffer is displayed at bottom
...
A regression was introduced by commit bee56c3b7f
(/window scroll_beyond_end).
Scenario to reproduce the problem, for example on an IRC channel with a long
history (more than two pages):
/window page_up
/window page_down
<type some text and send to channel>
It will display -MORE(1)- instead of automatically scrolling to bottom of
buffer.
2013-07-31 14:41:27 +02:00
Sebastien Helleu
b3923b65f1
core: use variable "items_count" directly from hashtable without calling function hashtable_get_integer
2013-07-30 10:10:37 +02:00
Sebastien Helleu
8cd4bf3750
core: add option "-o" for command /color
2013-07-27 23:23:15 +02:00
Sebastien Helleu
a490195032
core: add secured data with optional encryption in file sec.conf
2013-07-27 12:57:08 +02:00
Sebastien Helleu
c14b1b5fae
core: remove gap after read marker line when there is no bar on the right (bug #39548 )
2013-07-22 18:25:35 +02:00
Sebastien Helleu
765297c038
Merge branch 'scroll-beyond-end'
2013-07-20 11:54:52 +02:00
Sebastien Helleu
94b9104d14
core: replace obsolete INCLUDES by AM_CPPFLAGS in files Makefile.am
2013-07-20 09:07:05 +02:00
Sebastien Helleu
354d96ea36
core: fix filtered line displayed after /window scroll_beyond_end
2013-07-18 20:07:47 +02:00
Sebastien Helleu
913e036fa3
core: fix pointer used to check if buffer has lines
2013-07-17 18:37:11 +02:00
Sebastien Helleu
c10cfb6aa0
core: do nothing in "/window scroll_beyond_end" if the buffer has no lines
2013-07-17 18:35:01 +02:00
Sebastien Helleu
bee56c3b7f
core: add option "scroll_beyond_end" for command /window (task #6745 )
2013-07-17 18:04:44 +02:00
Sebastien Helleu
ff09807c10
core: fix char displayed at the intersection of three windows (bug #39331 )
2013-07-10 08:39:44 +02:00
Sebastien Helleu
e7c947df3e
core: fix compilation warnings
2013-05-22 20:56:54 +02:00
Sebastien Helleu
2e43bac479
core: fix line alignment when option weechat.look.buffer_time_format is set to empty string
...
A regression was introduced by commit 305175fb8c
2013-05-21 11:07:15 +02:00
Sebastien Helleu
0a7b708a1f
core: add options weechat.look.prefix_align_more_after and weechat.look.prefix_buffer_align_more_after
2013-05-03 19:15:57 +02:00
Sebastien Helleu
305175fb8c
core: fix display of long lines without time (message beginning with two tabs)
...
The long lines without time were not properly aligned: the second and subsequent
lines should start at column 0 of chat area.
2013-05-01 16:46:54 +02:00
Sebastien Helleu
16cc0b6088
core: make nick prefix/suffix dynamic (move options from irc plugin to core, add logger options) (bug #37531 )
2013-04-29 18:30:59 +02:00
Sebastien Helleu
fe6cb5c1b3
core: do not force weechat_quit to 0 in main loop, so that a /quit issued before main loop is working
2013-04-12 09:10:57 +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
149c77decd
core: fix typos in many comments and some strings
2013-03-17 12:55:20 +01:00
Sebastien Helleu
30e6acb00d
core: add support of multiple layouts (task #11274 )
2013-03-17 08:28:41 +01:00
Sebastien Helleu
6fdee3aa9f
core: fix crash in display of chat area when the ncurses chat window is not initialized
...
This can happen when a window becomes too small for display: then we set the
ncurses chat window to NULL.
So when displaying buffer, we'll skip it if the ncurses chat window is NULL.
Steps to reproduce crash:
1. /window splith
2. /window resize -1 (many times, until chat area is less than one line)
3. /window balance
2013-01-12 19:40:04 +01:00
Sebastien Helleu
a421d330bf
core: fix refresh of bars when applying layout (bug #37944 , bug #37952 )
2013-01-05 11:00:30 +01:00
Sebastien Helleu
77afab57ed
core: fix scroll to bottom of window (default key: alt+end) when line displayed is bigger than chat area
2013-01-01 13:29:29 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00
Sebastien Helleu
0e726b43ef
core: fix another bug with horizontal separator displayed at bottom after split of windows (bug #37874 )
2012-12-20 16:26:41 +01:00
Sebastien Helleu
dd96e6daef
core: fix refresh of windows after split (fix bug with horizontal separator between windows) (bug #37874 )
2012-12-19 12:19:21 +01:00
Sebastien Helleu
3fcb00bfc5
core: fix stuck mouse (patch from Nei) (bug #36533 )
2012-12-19 09:10:16 +01:00
Sebastien Helleu
0faf58a287
core: fix default mouse buttons actions for script buffer (focus the window before executing action)
2012-12-19 09:00:59 +01:00
Sebastien Helleu
2b78673aa9
core: add git version in build, display it in "weechat-curses --help" and /version
2012-12-16 23:07:33 +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
Sebastien Helleu
f7c47a8644
core: fix scroll of one page down when weechat.look.scroll_page_percent is less than 100 (bug #37875 )
2012-12-07 13:45:41 +01:00
Sebastien Helleu
72959d1d8b
core: fix display of combining chars (patch from Nei) (bug #37775 )
2012-11-30 18:16:49 +01:00
Ailin Nemui
8b52fc90d5
core: add incomplete mouse events "event-down" and "event-drag" (task #11840 )
2012-11-02 17:26:52 +01:00
Sebastien Helleu
f42b3d382f
core: fix display problem when option weechat.look.prefix_same_nick is set (problem with nick displayed in first line of screen) (bug #37556 )
...
To fix this bug, a feature has been removed: the first message with a nick has
the prefix forced (to not display the value of weechat.look.prefix_same_nick on
top of screen), commit was: 04e98c3f29
This feature may be reintroduced in a future commit.
2012-10-17 16:34:21 +02:00
Sebastien Helleu
bfaed2bec6
core: move the set of cmake policy CMP0003 in directory src (so it applies to all plugins) (bug #37311 )
2012-09-17 13:15:05 +02:00
Sebastien Helleu
e1a54d49eb
core: add default key alt+"x" (zoom on merged buffer) (task #11029 )
2012-08-30 10:46:42 +02:00
Sebastien Helleu
c5daee28cf
core: fix display bug when end of a line is displayed on top of chat (last line truncated and MORE(0) in status bar) (bug #37203 )
2012-08-27 12:30:56 +02:00
Sebastien Helleu
d8d0d6e4c6
core: display spaces at the end of messages in chat area (bug #37024 )
2012-08-22 14:07:01 +02:00
Sebastien Helleu
d81d5c09d1
core: fix infinite loop in display when chat area has width of 1 with a bar displayed on the right (nicklist by default) (bug #37089 )
2012-08-22 10:14:24 +02:00
Sebastien Helleu
129f32ce8e
script: add option script.look.quiet_actions (no messages when installing/removing/loading/unloading scripts on script buffer)
2012-08-21 18:57:49 +02:00