summaryrefslogtreecommitdiff
path: root/src/gui/gui-buffer.c
AgeCommit message (Collapse)Author
2021-05-25core, buflist, irc, relay: replace freenode by libera in commentsSébastien Helleu
2021-03-20core: Prevent switching to start of visited buffers when jumping to nextTrygve Aaberge
If you run /input jump_next_visited_buffer right after switching to a buffer, weechat changes to the first buffer in the visited buffers list. That is, it wraps around and goes to the buffer you visited the longest ago. This patch fixes that. The reason it happens is that when you switch to a buffer (normally, i.e. in another way than using jump_previously_visited_buffer/ jump_next_visited_buffer) gui_buffers_visited_index is set to -1 (in gui_buffer_visited_add). This makes gui_buffer_visited_get_index_next return 0 because it returns gui_buffers_visited_index + 1, which makes gui_input_jump_next_visited_buffer jump to the first buffer in the list of visited buffers. Fixes #1591
2021-01-02core: update copyright datesSébastien Helleu
2020-11-17core: fix and normalize error messagesSébastien Helleu
2020-08-04core: rename functions to allocate/free linesSébastien Helleu
2020-05-16core: add bar items with nicklist groups and nicks/groups (closes #1506)Sébastien Helleu
The bar item "buffer_nicklist_count" is now the number of displayed nicks only (not groups). New bar items: - "buffer_nicklist_count_groups": number of groups displayed - "buffer_nicklist_count_all": number of nicks and groups displayed
2020-05-14core: force buffer property "time_for_each_line" to 0 for buffers with free ↵Sébastien Helleu
content (closes #1485)
2020-05-09core: add an option for multiline input in a buffer (closes #984)Trygve Aaberge
This allows the input callback function for a buffer to receive multiple lines at once, instead of the message being split on newline before being sent to the callback. It adds a new flag, input_multiline, to control this. This flag defaults to 0 which is the current behavior.
2020-04-27api: add functions completion_new, completion_search and completion_free ↵Sébastien Helleu
(issue #1484)
2020-01-12core: reset variable "old_full_name" after send of signal "buffer_renamed" ↵Sébastien Helleu
(issue #1428)
2020-01-12core: add variable "old_full_name" in buffer, set before the buffer is ↵Sébastien Helleu
renamed (issue #1428)
2020-01-04core: update copyright datesSébastien Helleu
2019-11-17core: set buffer name, short name and title only if the value has changedSébastien Helleu
This fix reduces the number of messages "_buffer_title_changed" sent to the weechat relay clients in IRC private buffers (this message was sent for every new message received in the private buffer).
2019-08-10core: create or update option weechat.notify.xxx when function buffer_set is ↵Sébastien Helleu
called with "notify" property (closes #1390)
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-02-27core: remove function gui_buffer_match_list_split, use function ↵Sébastien Helleu
string_match_list
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-10-27core: split wee-secure.c into 3 files (secured data functions, buffer and ↵Sébastien Helleu
config)
2018-10-01core: fix format of variables in printf-like functions (from int to long and ↵Sébastien Helleu
long long)
2018-08-12api: add function hook_lineSébastien Helleu
2018-08-12core: fix check of tags in linesSébastien Helleu
All changes: - fix check of tags in lines: check lines without tags, fix check of tags with negation ("!tag") - add string functions string_split_tags and string_free_split_tags - add tests on function gui_line_match_tags
2018-01-07core: set input callback on user buffers after /upgradeSébastien Helleu
2018-01-06core: add option "add" in command /buffer (issue #1113)Sébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-08-21core: add flag "input_get_empty" in bufferSébastien Helleu
The default value is 0 (legacy behavior). When it is set to 1, an empty input (just by pressing Return with nothing in input) is sent to the input callback, which receives an empty string.
2017-06-10core, plugins: fix conditions to insert elements in linked listsSébastien Helleu
This removes scan-build warnings about dereference of last_xxx null pointers.
2017-03-25core: add hotlist pointer in buffer structureSébastien Helleu
2017-01-01core: update copyright datesSébastien Helleu
2016-10-08core: fix integer overflow in calls to realloc (issue #809)Sébastien Helleu
2016-08-13core: fix NULL pointer derefence in case of memory error in ↵Sébastien Helleu
gui_buffer_input_buffer_init()
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
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-02-28core: check that pointers received in arguments are not NULL in buffers and ↵Sébastien Helleu
windows functions
2016-01-01core: update copyright datesSébastien Helleu
2015-06-22core: fix bar item "scroll" after /buffer clear (closes #448)Sébastien Helleu
2015-01-01core: update copyright datesSébastien Helleu
2014-09-24core: fix crash on buffer close when option weechat.look.hotlist_remove is ↵Sébastien Helleu
set to "merged" (closes #199)
2014-05-24relay: fix crash when closing relay buffers (closes #57, closes #78)Sébastien Helleu
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-24api: add argument "flags" in function hdata_new_listSébastien Helleu
2014-04-05core: add option -all for command /buffer hide|unhideSébastien Helleu
2014-04-05core: add hidden buffers, add options hide/unhide in command /bufferSébastien Helleu
2014-04-03core: add "hotlist" in completion of command "/buffer set"Sébastien Helleu
2014-04-03api: allow value "-1" for property "hotlist" in function buffer_set (to ↵Sébastien Helleu
remove a buffer from hotlist)
2014-04-01core: add default key alt-'-' to toggle filters in current buffer (closes #17)Sébastien Helleu
2014-03-31core: add non-active merged buffers with activity in hotlist (if another ↵Sébastien Helleu
merged buffer is zoomed) (task #12845) There was a bug with "num_displayed" in buffers when they are merged and that one buffer is zoomed: now the num_displayed is > 0 for the active buffer, and it is set to 0 for all merged non-active buffers (only in case of zoom). A variable "zoomed" has been added in buffers to know if a buffer with this number is zoomed or not (possibly another buffer).
2014-03-25core: add buffer property "clear"Sebastien Helleu
2014-03-11api: add support of case insensitive search and search by buffer full name ↵Sebastien Helleu
in function buffer_search (bug #34318)
2014-02-10api: add integer return code for functions hook_{signal|hsignal}_sendSebastien Helleu
2014-02-07core: fix apply of layout when buffers that are not in layout are before ↵Sebastien Helleu
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.