summaryrefslogtreecommitdiff
path: root/src/gui/gui-window.c
AgeCommit message (Collapse)Author
2023-04-25core: add _chat_focused_line variable to get the focused lineTrygve Aaberge
This contains the single line that you focused on, like _chat_word contains the word that you focused on. This will be equal to _chat_line_message if the chat line only contains a single line, but if the chat line has multiple lines, _chat_line_message will contain all of them, but _chat_focused_line will only contain the single line that was focused. Fixes part of #1913
2023-04-19core: render newline characters in chat line messagesTrygve Aaberge
If a chat line message contains a newline character (\n) it was previously rendered as J with reverse video. This commit makes it render as an actual newline instead, so messages with multiple lines become supported. The rendering is fixed in normal mode as well as bare mode both when scrolled to the bottom and when scrolled up (which is different code paths). Focus events has also been updated to support this (except for _chat_line_y which returns -1 for all lines, but the docs says this variable is only for buffers with free content). Currently, the only way to include a \n in a chat line message is with hdata_update because printf splits on \n and creates multiple separate lines, but hopefully either printf can be changed to not split on \n, or a new command which doesn't split can be added.
2023-01-28core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)Sébastien Helleu
2023-01-28core: make get/set object properties case sensitive (issue #1872)Sébastien Helleu
2023-01-01core: update copyright datesSébastien Helleu
2022-12-18core: remove unused argument "pos" from function gui_input_insert_string, ↵Sébastien Helleu
add tests on function
2022-01-17core: update copyright datesSébastien Helleu
2021-01-02core: update copyright datesSébastien Helleu
2020-01-04core: update copyright datesSébastien Helleu
2019-10-06core: fix line too long, add comment on argument "with_suffix"Sébastien Helleu
2019-10-06core: count suffix in alignment computed for context infoSébastien Helleu
2019-10-06Merge remote-tracking branch 'origin/pr/619'Sébastien Helleu
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
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: check that pointers received in arguments are not NULL in "free" functionsSébastien Helleu
Functions: - hdata_free - infolist_var_free - infolist_item_free - infolist_free - string_shared_free - gui_window_objects_free - gui_color_free - gui_completion_free - gui_filter_free - gui_history_buffer_free - gui_hotlist_free - gui_key_free - gui_lines_free - gui_line_tags_free - gui_line_free - gui_window_tree_free - gui_window_scroll_free
2017-01-22core: add resize of window parents (closes #893)raspbeguy
2017-01-01core: update copyright datesSébastien Helleu
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-12-03gui: fix focus data being offset when prefix_align is none (closes #610)Simmo Saan
window->coords_x_message stored a single x coordinate for the entire window which was used for message position calculation. Such approach does not work when prefix_align is none, thus now the x coordinate in question is exactly calculated for a line individually.
2015-07-26core: factorize functions to search text in windowSébastien Helleu
2015-07-26Merge remote-tracking branch 'origin/pr/393'Sébastien Helleu
2015-07-25core: flush stdout/stderr after sending text directly on them (fix corrupted ↵Sébastien Helleu
data sent to hook_process() callback) (closes #442)
2015-07-04core: fix type of value returned by functions gui_chat_string_next_char, ↵Sébastien Helleu
gui_chat_string_add_offset and gui_chat_string_add_offset_screen
2015-07-04api: fix type of value returned by functions utf8_prev_char, utf8_next_char ↵Sébastien Helleu
and utf8_add_offset
2015-04-12core: add more intuitive buffer searching (closes #76)Simmo Saan
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-08-10core: return immediately if localtime fails in window scrollSébastien Helleu
2014-05-24api: add argument "flags" in function hdata_new_listSébastien Helleu
2014-03-29core: add text search in buffers with free content (task #13051)Sebastien Helleu
2014-03-17core: fix "/window scroll_bottom" on a buffer with free contentSebastien Helleu
The bug was introduced by commit 8fac1eea40d6306c27bd854f8ae7bd0c35632fc9 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-07core: fix "/window scroll -N" on a buffer with free contentSebastien Helleu
2014-02-16core: add bare display mode (for easy text selection and click on URLs)Sebastien Helleu
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-10api: add integer return code for functions hook_{signal|hsignal}_sendSebastien Helleu
2014-01-21core: rename option weechat.look.save_layout_on_exit to ↵Sebastien Helleu
weechat.look.store_layout_on_exit, replace "save" by "store" for layouts
2014-01-01core: update copyright datesSebastien Helleu
2013-10-06core: add options to customize default text search in buffersSebastien Helleu
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-08-17core: add search of regular expression in buffer, don't reset search type on ↵Sebastien Helleu
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-07-17core: add option "scroll_beyond_end" for command /window (task #6745)Sebastien Helleu
2013-05-30core: fix random crash on mouse actions (bug #39094)Sebastien Helleu
2013-03-17core: fix refresh of item "completion" (bug #38214) (patch from Nils Görs)Sebastien Helleu
The item is now cleared after any action that is changing content of command line and after switch of buffer.
2013-03-17core: add support of multiple layouts (task #11274)Sebastien Helleu
2013-02-12core: add signal "window_opened" (task #12464)Sebastien Helleu
2013-01-01core: update copyright datesSebastien Helleu
2012-12-15core: move comments with description of C file to top of filesSebastien Helleu
2012-12-13core: reformat comments for functionsSebastien Helleu