Fredrik Fornwall
b29352eff6
Replace getdtablesize() with sysconf(_SC_OPEN_MAX)
...
From the getdtablesize(3) man page:
It is not specified in POSIX.1; portable applications should
employ sysconf(_SC_OPEN_MAX) instead of this call.
Specifically, this fixes a compilation problem on Android.
2018-03-18 21:15:12 +01:00
Sébastien Helleu
8e7f5ea6e8
core: fix build with CMake and Ninja
2018-03-18 11:49:15 +01:00
Sébastien Helleu
71999e17c6
core: quit WeeChat on ctrl-C (signal SIGINT) in headless mode
2018-03-16 20:10:57 +01:00
Sébastien Helleu
84f4e31425
core: fix compilation error on Cygwin
2018-03-16 20:09:35 +01:00
Sébastien Helleu
78f5a73d94
doc: replace "rm -f" by "$(RM)" in makefiles
2018-03-11 20:59:41 +01:00
Sébastien Helleu
985a55cf45
core: fix compilation warning on ignored returned value for function dup()
2018-03-11 10:34:19 +01:00
Sébastien Helleu
805717e9ec
core: add binary weechat-headless to run WeeChat without interface ( closes #1120 )
...
The optional command line option "--daemon" runs WeeChat like a daemon
(fork, new process group, file descriptors closed).
2018-03-11 09:59:39 +01:00
Sébastien Helleu
f3de26c075
core: set input callback on user buffers after /upgrade
2018-01-07 12:37:04 +01:00
Sébastien Helleu
7ee88fb46c
core: fix some styles
2018-01-07 09:11:45 +01:00
Sébastien Helleu
91f792416b
core: add option "add" in command /buffer (issue #1113 )
2018-01-06 14:19:50 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
40749afced
core: add option weechat.completion.partial_completion_templates
...
This option is used to force partial completion on specific templates
(for now only "config_options").
2017-12-09 11:40:14 +01:00
Sébastien Helleu
b072586d79
core: add missing includes of stdio.h
2017-11-04 21:03:15 +01:00
Sébastien Helleu
093af02f0c
core: remove useless condition (issue #1092 )
2017-10-29 07:35:38 +01:00
Sébastien Helleu
84013b82df
core: do not change the chat prefix size when a filtered line is added ( closes #1092 )
2017-10-29 07:17:30 +01:00
Sébastien Helleu
fe73a38b58
api: add support of prefix "quiet:" in function key_unbind() to quietly remove keys
2017-10-24 23:03:40 +02:00
Sébastien Helleu
bfb8499d61
core: fix display of groups/nicks in nicklist in case of empty groups (issue #1079 )
2017-10-09 09:10:36 +02:00
Sébastien Helleu
7a452ce8bc
core: fix display of nicks in nicklist when they are in a group with sub-groups ( closes #1079 )
2017-10-08 14:09:02 +02:00
Sébastien Helleu
01cc63aa45
core: initialize variables attrs and pair before calling wattr_get
...
This fixes a compiler warning, in some cases wattr_get may not initialize the
variables.
2017-09-25 20:12:31 +02:00
Sébastien Helleu
5aab494dd6
core, plugins: check return code of strftime function
2017-09-23 15:06:28 +02:00
Sébastien Helleu
6d46daed6c
doc: add non-breaking spaces in French messages
2017-08-25 07:45:34 +02:00
Sébastien Helleu
db0bdc2ac6
core: add flag "input_get_empty" in buffer
...
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-08-21 07:41:28 +02:00
Sébastien Helleu
aeeec38d6f
core: fix cast of time_t (to "long long" instead of "long") ( closes #1051 )
2017-08-12 18:36:45 +02:00
Sébastien Helleu
9bad3f44db
core: remove value for first #define in headers, add "PLUGIN" in plugin headers
2017-08-10 20:05:16 +02:00
Sébastien Helleu
8fdd6164ef
core: call the config hook when options are removed
2017-07-08 14:44:28 +02:00
Sébastien Helleu
46f409d463
core: improve speed of nicklist bar item callback
...
It's faster to use a string with dynamic size, rather than looping on the whole
nicklist to compute the length of result string, before looping again to build
the string.
2017-06-10 16:56:13 +02:00
Sébastien Helleu
54bf589d7d
core, plugins: fix conditions to insert elements in linked lists
...
This removes scan-build warnings about dereference of last_xxx null pointers.
2017-06-10 16:21:11 +02:00
Sébastien Helleu
8c8a0c0826
core: remove unused function gui_window_clear_weechat (issue #1012 )
2017-06-10 15:03:06 +02:00
Sébastien Helleu
46b27bff4e
core: fix bind of keys with space key, like alt+space (bug #32133 )
2017-06-10 08:15:44 +02:00
Sébastien Helleu
e2589aaaca
api: allow update of variables "scroll_x" and "scroll_y" in bar_window with function hdata_update
2017-06-08 06:53:32 +02:00
Sébastien Helleu
1e22a96a10
core: remove unused functions gui_bar_get_min_width and gui_bar_get_min_height (issue #1012 )
2017-06-06 07:29:05 +02:00
Simmo Saan
4492547204
gui: remove callback unused after 0b2be21f1f
2017-06-03 16:24:17 +03:00
Simmo Saan
55e7090cde
gui: remove completion hdata made unusable by arraylist usage
2017-06-03 15:59:12 +03:00
Simmo Saan
e5f67894be
gui, buflist: remove declared but undefined functions
2017-06-03 15:59:12 +03:00
Simmo Saan
90936d8478
core, gui: remove declared but unused global variables
2017-06-03 15:58:07 +03:00
Simmo Saan
ab3806e320
gui: fix gui-focus.h header guard
2017-06-03 15:58:07 +03:00
Simmo Saan
dcef2a8e0d
gui: remove non-standard enum forward declaration
2017-06-03 15:56:26 +03:00
Simmo Saan
e5fe9c34c3
gui: fix gui_key_default_bindings declared without arguments
2017-06-03 15:56:26 +03:00
Sébastien Helleu
da8f19bcee
core: fix infinite loop when the terminal is closed on the secure password prompt ( closes #1010 )
2017-06-03 13:41:49 +02:00
Sébastien Helleu
23ec19b8dd
core: remove useless condition
...
Variables base_word and nick can not be NULL here.
2017-05-21 14:36:41 +02:00
Sébastien Helleu
9df72e5d53
core: remove dead assignment in function gui_input_history_next
2017-05-10 21:00:09 +02:00
Sébastien Helleu
df00926d35
core: add option weechat.completion.nick_case_sensitive ( closes #981 )
2017-05-06 10:18:44 +02:00
Sébastien Helleu
07b7be0357
core: fix memory leak in display of mouse event debug info
2017-05-04 07:29:24 +02:00
Sébastien Helleu
2a43f45947
core: fix command /cursor stop (do not toggle cursor mode) ( closes #964 )
2017-04-25 07:20:34 +02:00
Sébastien Helleu
2ab3015114
script: move default mouse keys for script plugin from core to script-mouse.c
2017-03-31 21:07:32 +02:00
Sébastien Helleu
36eb3ee343
api: add special key "__quiet" in function key_bind
2017-03-31 21:04:21 +02:00
Sébastien Helleu
3045021430
core: fix cut of chars in "cutscr" of evaluated strings
...
This fixes two problems:
- stop before max char displayed with wide chars
- preserve combining chars in the output
Before the fix (wrong):
>> ${cutscr:3,+,こんにちは世界}
== [こん+]
>> ${cutscr:1,+,a${\u0308}}
== [a+]
After the fix (OK):
>> ${cutscr:3,+,こんにちは世界}
== [こ+]
>> ${cutscr:1,+,a${\u0308}}
== [ä]
2017-03-28 20:45:31 +02:00
Sébastien Helleu
e113fe2440
core: fix type of values for hashtables extra_vars and options in gui_bar_check_conditions
2017-03-25 14:19:48 +01:00
Sébastien Helleu
a8bf5eb7ba
core: add hotlist pointer in buffer structure
2017-03-25 14:19:48 +01:00
Sébastien Helleu
0d059add9a
core: check that pointers received in arguments are not NULL in "free" functions
...
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-03-25 14:01:50 +01:00