mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 120b048efb | |||
| 600e438b90 | |||
| bf3a8628ae | |||
| 1478ecd77d | |||
| 5c9d9bc8fc | |||
| ff00323363 | |||
| 1d2e5ce700 | |||
| 2eebe241ab | |||
| e93cebf02c | |||
| c3db4946b2 | |||
| 86d4da2fd1 | |||
| e39ef93903 |
@@ -1,5 +1,20 @@
|
||||
# WeeChat ChangeLog
|
||||
|
||||
## Version 4.6.2 (2025-04-18)
|
||||
|
||||
### Fixed
|
||||
|
||||
- core: fix write of weechat.log to stdout with `weechat-headless --stdout` ([#2247](https://github.com/weechat/weechat/issues/2247))
|
||||
- core: add refresh of window title on buffer switch, when option weechat.look.window_title is set
|
||||
|
||||
## Version 4.6.1 (2025-04-09)
|
||||
|
||||
### Fixed
|
||||
|
||||
- core: consider all keys are safe in cursor context ([#2244](https://github.com/weechat/weechat/issues/2244))
|
||||
- irc: display nick changes and quit messages when option irc.look.ignore_tag_messages is enabled ([#2241](https://github.com/weechat/weechat/issues/2241))
|
||||
- perl: fix build when multiplicity is not available ([#2243](https://github.com/weechat/weechat/issues/2243))
|
||||
|
||||
## Version 4.6.0 (2025-03-23)
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -24,7 +24,7 @@ Build-Depends:
|
||||
libzstd-dev,
|
||||
zlib1g-dev,
|
||||
libcjson-dev
|
||||
Standards-Version: 4.7.0
|
||||
Standards-Version: 4.7.2
|
||||
Homepage: https://weechat.org/
|
||||
Vcs-Git: https://salsa.debian.org/kolter/weechat.git
|
||||
Vcs-Browser: https://salsa.debian.org/kolter/weechat
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
weechat (4.6.1-1) unstable; urgency=medium
|
||||
|
||||
* New upstream release (Closes: #1102450, #1098090)
|
||||
|
||||
-- Emmanuel Bouthenot <kolter@debian.org> Wed, 16 Apr 2025 20:31:07 +0000
|
||||
|
||||
weechat (4.5.1-1) unstable; urgency=medium
|
||||
|
||||
* New upstream release
|
||||
|
||||
@@ -24,7 +24,7 @@ Build-Depends:
|
||||
libzstd-dev,
|
||||
zlib1g-dev,
|
||||
libcjson-dev
|
||||
Standards-Version: 4.7.0
|
||||
Standards-Version: 4.7.2
|
||||
Homepage: https://weechat.org/
|
||||
Vcs-Git: https://salsa.debian.org/kolter/weechat.git
|
||||
Vcs-Browser: https://salsa.debian.org/kolter/weechat
|
||||
|
||||
@@ -15528,8 +15528,8 @@ void weechat_window_set_title (const char *title);
|
||||
|
||||
Arguments:
|
||||
|
||||
* _title_: new title for terminal (NULL to reset title); string is evaluated,
|
||||
so variables like `${info:version}` can be used
|
||||
* _title_: new title for terminal; string is evaluated, so variables like
|
||||
`${info:version}` can be used
|
||||
(see <<_string_eval_expression,string_eval_expression>>)
|
||||
|
||||
C example:
|
||||
|
||||
@@ -15869,9 +15869,9 @@ void weechat_window_set_title (const char *title);
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _title_ : nouveau titre pour le terminal (NULL pour réinitialiser le titre) ;
|
||||
la chaîne est évaluée, donc les variables comme `${info:version}` peuvent
|
||||
être utilisées (voir <<_string_eval_expression,string_eval_expression>>)
|
||||
* _title_ : nouveau titre pour le terminal ; la chaîne est évaluée, donc les variables
|
||||
comme `${info:version}` peuvent être utilisées
|
||||
(voir <<_string_eval_expression,string_eval_expression>>)
|
||||
|
||||
Exemple en C :
|
||||
|
||||
|
||||
@@ -16302,8 +16302,8 @@ void weechat_window_set_title (const char *title);
|
||||
Argomenti:
|
||||
|
||||
// TRANSLATION MISSING
|
||||
* _title_: nuovo titolo per il terminale (NULL per resettarlo);
|
||||
string is evaluated, so variables like `${info:version}` can be used
|
||||
* _title_: nuovo titolo per il terminale; string is evaluated, so variables
|
||||
like `${info:version}` can be used
|
||||
(see <<_string_eval_expression,string_eval_expression>>)
|
||||
|
||||
Esempio in C:
|
||||
|
||||
@@ -15797,8 +15797,8 @@ void weechat_window_set_title (const char *title);
|
||||
|
||||
引数:
|
||||
|
||||
* _title_: 端末の新しいタイトル (タイトルをリセットする場合は NULL);
|
||||
この文字列は評価されるため、文字列内に `${info:version}` などの変数を含めることが可能です
|
||||
* _title_: 端末の新しいタイトル; この文字列は評価されるため、文字列内に
|
||||
`${info:version}` などの変数を含めることが可能です
|
||||
(<<_string_eval_expression,string_eval_expression>> を参照)
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
@@ -15104,7 +15104,9 @@ void weechat_window_set_title (const char *title);
|
||||
|
||||
Аргументи:
|
||||
|
||||
* _title_: нови наслов за терминал (NULL ако желите да ресетујете наслов); стринг се израчунава, тако да је могуће коришћење променљивих као што је `${info:version}` (погледајте <<_string_eval_expression,string_eval_expression>>)
|
||||
* _title_: нови наслов за терминал; стринг се израчунава, тако да је могуће
|
||||
коришћење променљивих као што је `${info:version}`
|
||||
(погледајте <<_string_eval_expression,string_eval_expression>>)
|
||||
|
||||
C пример:
|
||||
|
||||
|
||||
@@ -498,12 +498,8 @@ config_change_window_title (const void *pointer, void *data,
|
||||
(void) data;
|
||||
(void) option;
|
||||
|
||||
if (gui_init_ok
|
||||
|| (CONFIG_STRING(config_look_window_title)
|
||||
&& CONFIG_STRING(config_look_window_title)[0]))
|
||||
{
|
||||
if (gui_init_ok)
|
||||
gui_window_set_title (CONFIG_STRING(config_look_window_title));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+12
-11
@@ -70,21 +70,22 @@ log_open (const char *filename, const char *mode)
|
||||
{
|
||||
weechat_log_file = stdout;
|
||||
}
|
||||
else if (filename)
|
||||
{
|
||||
weechat_log_filename = strdup (filename);
|
||||
}
|
||||
else
|
||||
{
|
||||
string_asprintf (&weechat_log_filename,
|
||||
"%s/%s", weechat_state_dir, WEECHAT_LOG_NAME);
|
||||
if (filename)
|
||||
{
|
||||
weechat_log_filename = strdup (filename);
|
||||
}
|
||||
else
|
||||
{
|
||||
string_asprintf (&weechat_log_filename,
|
||||
"%s/%s", weechat_state_dir, WEECHAT_LOG_NAME);
|
||||
}
|
||||
if (!weechat_log_filename)
|
||||
return 0;
|
||||
weechat_log_file = fopen (weechat_log_filename, mode);
|
||||
}
|
||||
|
||||
if (!weechat_log_filename)
|
||||
return 0;
|
||||
|
||||
weechat_log_file = fopen (weechat_log_filename, mode);
|
||||
|
||||
if (!weechat_log_file)
|
||||
{
|
||||
if (weechat_log_filename)
|
||||
|
||||
@@ -231,12 +231,7 @@ gui_main_init (void)
|
||||
gui_term_cols, gui_term_lines, 100, 100))
|
||||
{
|
||||
gui_current_window = gui_windows;
|
||||
|
||||
if (CONFIG_STRING(config_look_window_title)
|
||||
&& CONFIG_STRING(config_look_window_title)[0])
|
||||
{
|
||||
gui_window_set_title (CONFIG_STRING(config_look_window_title));
|
||||
}
|
||||
gui_window_set_title (CONFIG_STRING(config_look_window_title));
|
||||
}
|
||||
|
||||
/* switch to buffer */
|
||||
@@ -526,13 +521,6 @@ gui_main_end (int clean_exit)
|
||||
/* delete global history */
|
||||
gui_history_global_free ();
|
||||
|
||||
/* reset title */
|
||||
if (CONFIG_STRING(config_look_window_title)
|
||||
&& CONFIG_STRING(config_look_window_title)[0])
|
||||
{
|
||||
gui_window_set_title (NULL);
|
||||
}
|
||||
|
||||
/* end color */
|
||||
gui_color_end ();
|
||||
|
||||
|
||||
@@ -2479,13 +2479,11 @@ gui_window_refresh_screen (int full_refresh)
|
||||
refresh ();
|
||||
gui_window_read_terminal_size ();
|
||||
refresh ();
|
||||
gui_window_set_title (
|
||||
(CONFIG_STRING(config_look_window_title)
|
||||
&& CONFIG_STRING(config_look_window_title)[0]) ?
|
||||
CONFIG_STRING(config_look_window_title) : NULL);
|
||||
}
|
||||
|
||||
gui_window_refresh_windows ();
|
||||
|
||||
gui_window_set_title (CONFIG_STRING(config_look_window_title));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -2573,15 +2571,17 @@ gui_window_set_title (const char *title)
|
||||
{
|
||||
char *new_title, *envterm, *envshell, *shell, *shellname;
|
||||
|
||||
envterm = getenv ("TERM");
|
||||
if (!envterm)
|
||||
if (!title || !title[0])
|
||||
return;
|
||||
|
||||
new_title = (title && title[0]) ?
|
||||
eval_expression (title, NULL, NULL, NULL) : NULL;
|
||||
new_title = eval_expression (title, NULL, NULL, NULL);
|
||||
if (!new_title)
|
||||
return;
|
||||
|
||||
envterm = getenv ("TERM");
|
||||
if (!envterm)
|
||||
return;
|
||||
|
||||
if (strcmp (envterm, "sun-cmd") == 0)
|
||||
{
|
||||
printf ("\033]l%s\033\\", new_title);
|
||||
|
||||
+10
-10
@@ -1213,12 +1213,12 @@ gui_key_set_score (struct t_gui_key *key)
|
||||
}
|
||||
|
||||
/*
|
||||
* Checks if a key is safe or not: a safe key begins always with the "meta" or
|
||||
* "ctrl" code (except "@" allowed in cursor/mouse contexts).
|
||||
* Checks if a key is safe or not: a safe key should begin with the "meta" or
|
||||
* "ctrl" code (there are exceptions).
|
||||
*
|
||||
* Returns:
|
||||
* 1: key is safe
|
||||
* 0: key is NOT safe
|
||||
* 1: key is safe for the given context
|
||||
* 0: key is NOT safe for the given context
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -1229,13 +1229,13 @@ gui_key_is_safe (int context, const char *key)
|
||||
if (!key || !key[0])
|
||||
return 0;
|
||||
|
||||
/* "@" is allowed at beginning for cursor/mouse contexts */
|
||||
if ((key[0] == '@')
|
||||
&& ((context == GUI_KEY_CONTEXT_CURSOR)
|
||||
|| (context == GUI_KEY_CONTEXT_MOUSE)))
|
||||
{
|
||||
/* all keys are safe in cursor mode */
|
||||
if (context == GUI_KEY_CONTEXT_CURSOR)
|
||||
return 1;
|
||||
|
||||
/* "@" is allowed at beginning for mouse context */
|
||||
if ((key[0] == '@') && (context == GUI_KEY_CONTEXT_MOUSE))
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (strncmp (key, "comma", 5) == 0)
|
||||
return 0;
|
||||
|
||||
@@ -2393,8 +2393,7 @@ IRC_PROTOCOL_CALLBACK(nick)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!irc_ignore_check (ctxt->server, ptr_channel->name,
|
||||
ctxt->nick, ctxt->host))
|
||||
if (!ctxt->ignore_remove)
|
||||
{
|
||||
ptr_nick_speaking = ((weechat_config_boolean (irc_config_look_smart_filter))
|
||||
&& (weechat_config_boolean (irc_config_look_smart_filter_nick))) ?
|
||||
@@ -3401,7 +3400,7 @@ IRC_PROTOCOL_CALLBACK(quit)
|
||||
if (ptr_nick
|
||||
|| (irc_server_strcasecmp (ctxt->server, ptr_channel->name, ctxt->nick) == 0))
|
||||
{
|
||||
if (!irc_ignore_check (ctxt->server, ptr_channel->name, ctxt->nick, ctxt->host))
|
||||
if (!ctxt->ignore_remove)
|
||||
{
|
||||
/* display quit message */
|
||||
ptr_nick_speaking = NULL;
|
||||
|
||||
@@ -352,7 +352,7 @@ weechat_perl_exec (struct t_plugin_script *script,
|
||||
if (weechat_asprintf (
|
||||
&func,
|
||||
"%s::%s",
|
||||
(char *) ((script->interpreter) ? script->interpreter : perl_main)
|
||||
(char *) ((script->interpreter) ? script->interpreter : perl_main),
|
||||
function) < 0)
|
||||
{
|
||||
return NULL;
|
||||
|
||||
+2
-2
@@ -39,8 +39,8 @@
|
||||
# devel-number the devel version as hex number ("0x04010000" for "4.1.0-dev")
|
||||
#
|
||||
|
||||
weechat_stable="4.6.0"
|
||||
weechat_devel="4.6.0"
|
||||
weechat_stable="4.6.2"
|
||||
weechat_devel="4.6.2"
|
||||
|
||||
stable_major=$(echo "${weechat_stable}" | cut -d"." -f1)
|
||||
stable_minor=$(echo "${weechat_stable}" | cut -d"." -f2)
|
||||
|
||||
Reference in New Issue
Block a user