wrap really long line
This commit is contained in:
parent
4bde4a1b37
commit
fb6193d028
|
@ -353,13 +353,14 @@ static void load_config(GtkWindow *window, VteTerminal *vte,
|
||||||
|
|
||||||
GdkColor foreground, background, cursor, palette[16];
|
GdkColor foreground, background, cursor, palette[16];
|
||||||
|
|
||||||
static const char *color_names[8] = {"black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"};
|
static const char *colors[8] = {"black", "red", "green", "yellow",
|
||||||
|
"blue", "magenta", "cyan", "white"};
|
||||||
|
|
||||||
bool success = true;
|
bool success = true;
|
||||||
for (unsigned i = 0; i < 8; i++) {
|
for (unsigned i = 0; i < 8; i++) {
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
gsize length;
|
gsize length;
|
||||||
gchar **pair = g_key_file_get_string_list(config, "colors", color_names[i], &length, &error);
|
gchar **pair = g_key_file_get_string_list(config, "colors", colors[i], &length, &error);
|
||||||
if (error) {
|
if (error) {
|
||||||
success = false;
|
success = false;
|
||||||
g_error_free(error);
|
g_error_free(error);
|
||||||
|
|
Loading…
Reference in New Issue