Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Thu, 12 Sep 2024 14:21:37 UTC Commit: a6c6518042df3b0370bb47a16a916663864105ee https://github.com/geany/geany/commit/a6c6518042df3b0370bb47a16a916663864105...
Log Message: ----------- Fix indentation to suppress clangd warnings
Modified Paths: -------------- src/editor.c src/libmain.c src/ui_utils.c
Modified: src/editor.c 3 lines changed, 1 insertions(+), 2 deletions(-) =================================================================== @@ -3516,8 +3516,7 @@ static gboolean is_comment_char(gchar c, gint lexer) { if ((c == '*' || c == '+') && lexer == SCLEX_D) return TRUE; - else - if (c == '*') + else if (c == '*') return TRUE;
return FALSE;
Modified: src/libmain.c 3 lines changed, 1 insertions(+), 2 deletions(-) =================================================================== @@ -1409,8 +1409,7 @@ gboolean main_quit(void) if (do_main_quit()) return TRUE; } - else - if (! prefs.confirm_exit || + else if (! prefs.confirm_exit || dialogs_show_question_full(NULL, GTK_STOCK_QUIT, GTK_STOCK_CANCEL, NULL, _("Do you really want to quit?"))) {
Modified: src/ui_utils.c 6 lines changed, 2 insertions(+), 4 deletions(-) =================================================================== @@ -528,11 +528,9 @@ void ui_update_menu_copy_items(GeanyDocument *doc)
if (IS_SCINTILLA(focusw)) enable = (doc == NULL) ? FALSE : sci_has_selection(doc->editor->sci); - else - if (GTK_IS_EDITABLE(focusw)) + else if (GTK_IS_EDITABLE(focusw)) enable = gtk_editable_get_selection_bounds(GTK_EDITABLE(focusw), NULL, NULL); - else - if (GTK_IS_TEXT_VIEW(focusw)) + else if (GTK_IS_TEXT_VIEW(focusw)) { GtkTextBuffer *buffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(focusw));
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).