Compare commits

..

3 Commits

Author SHA1 Message Date
Přemysl Eric Janouch f15d887dcd
Bump liberty
Alpine 3.20 Success Details
Arch Linux AUR Success Details
OpenBSD 7.5 Success Details
2024-08-08 09:02:25 +02:00
Přemysl Eric Janouch 841bc00c51
xP: cleanup
I had forgotten about the auto-redraw system.
2024-07-28 13:42:28 +02:00
Přemysl Eric Janouch 8afe4f8aad
Improve wording in the last NEWS entry 2024-07-28 13:26:24 +02:00
4 changed files with 9 additions and 11 deletions

2
NEWS
View File

@ -16,7 +16,7 @@
* xC: replaced behaviour.save_on_quit with general.autosave * xC: replaced behaviour.save_on_quit with general.autosave
* xC: the server *.command configuration option now supports multiple lines * xC: the servers.*.command configuration option now supports multiple lines
* xC: improved pager integration capabilities * xC: improved pager integration capabilities

@ -1 +1 @@
Subproject commit f04cc2c61e1a00db4d1af1bb55ca7e20b9c3db23 Subproject commit 75fc6f1c374796f9e794297c3893089009b8772f

12
xC.c
View File

@ -2567,7 +2567,7 @@ config_validate_nonnegative
return false; return false;
} }
static struct config_schema g_config_server[] = static const struct config_schema g_config_server[] =
{ {
{ .name = "nicks", { .name = "nicks",
.comment = "IRC nickname", .comment = "IRC nickname",
@ -2664,7 +2664,7 @@ static struct config_schema g_config_server[] =
{} {}
}; };
static struct config_schema g_config_general[] = static const struct config_schema g_config_general[] =
{ {
{ .name = "autosave", { .name = "autosave",
.comment = "Save configuration automatically after each change", .comment = "Save configuration automatically after each change",
@ -2772,7 +2772,7 @@ static struct config_schema g_config_general[] =
{} {}
}; };
static struct config_schema g_config_theme[] = static const struct config_schema g_config_theme[] =
{ {
#define XX(x, y, z) { .name = #y, .comment = #z, .type = CONFIG_ITEM_STRING, \ #define XX(x, y, z) { .name = #y, .comment = #z, .type = CONFIG_ITEM_STRING, \
.on_change = on_config_theme_change }, .on_change = on_config_theme_change },
@ -9306,7 +9306,7 @@ config_dump_item (struct config_item *item, struct config_dump_data *data)
} }
// Currently there's no reason for us to dump unknown items // Currently there's no reason for us to dump unknown items
struct config_schema *schema = item->schema; const struct config_schema *schema = item->schema;
if (!schema) if (!schema)
return; return;
@ -13182,7 +13182,7 @@ try_handle_command_help_option (struct app_context *ctx, const char *name)
if (!item) if (!item)
return false; return false;
struct config_schema *schema = item->schema; const struct config_schema *schema = item->schema;
if (!schema) if (!schema)
{ {
log_global_error (ctx, "#s: #s", "Option not recognized", name); log_global_error (ctx, "#s: #s", "Option not recognized", name);
@ -15913,7 +15913,7 @@ on_config_relay_bind_change (struct config_item *item)
#ifdef TESTING #ifdef TESTING
static struct config_schema g_config_test[] = static const struct config_schema g_config_test[] =
{ {
{ .name = "foo", .type = CONFIG_ITEM_BOOLEAN, .default_ = "off" }, { .name = "foo", .type = CONFIG_ITEM_BOOLEAN, .default_ = "off" },
{ .name = "bar", .type = CONFIG_ITEM_INTEGER, .default_ = "1" }, { .name = "bar", .type = CONFIG_ITEM_INTEGER, .default_ = "1" },

View File

@ -695,10 +695,8 @@ let Buffer = {
dom.scrollTop + dom.clientHeight + 1 >= dom.scrollHeight dom.scrollTop + dom.clientHeight + 1 >= dom.scrollHeight
let b = buffers.get(bufferCurrent) let b = buffers.get(bufferCurrent)
if (b !== undefined && b.highlighted && !bufferAutoscroll) { if (b !== undefined && b.highlighted && !bufferAutoscroll)
b.highlighted = false b.highlighted = false
m.redraw()
}
}}, lines) }}, lines)
}, },
} }