[gnome-commander/remove-search: 1/3] Fix indentation




commit e167844fe17afd30f75754b5aeba3d24f3164cbd
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Wed Jan 12 19:27:16 2022 +0100

    Fix indentation

 src/gnome-cmd-user-actions.cc | 58 +++++++++++++++++++++----------------------
 1 file changed, 29 insertions(+), 29 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index cd27a969..d74e23a5 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -732,36 +732,36 @@ void file_edit (GtkMenuItem *menuitem, gpointer not_used)
         gnome_cmd_file_selector_show_new_textfile_dialog (get_fs (ACTIVE));
     else
     {
-       gchar       *command;
-
-       command = g_strdup (gnome_cmd_data.options.editor);
-       g_return_if_fail (command != NULL);
+           gchar       *command;
+
+           command = g_strdup (gnome_cmd_data.options.editor);
+           g_return_if_fail (command != NULL);
+
+           string dir_path;
+           string cmd;
+
+           cmd.reserve(2000);
+           if (parse_command(&cmd, (const gchar*) command) == 0)
+           {
+               DEBUG ('g', "Edit file command is not valid.\n");
+               gnome_cmd_show_message (*main_win, _("No valid command given."));
+               return;
+           }
+           else
+           {
+            GnomeCmdDir *dir = NULL;
+               gint     argc;
+               gchar  **argv  = NULL;
+               GError  *error = NULL;
+               DEBUG ('g', "Edit file: %s\n", cmd.c_str());
+
+               g_shell_parse_argv (cmd.c_str(), &argc, &argv, NULL);
+               if (!g_spawn_async (gnome_cmd_dir_is_local (dir) ? dir_path.c_str() : NULL, argv, NULL, 
G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error))
+            gnome_cmd_error_message (_("Unable to execute command."), error);
 
-       string dir_path;
-       string cmd;
-       
-       cmd.reserve(2000);
-       if (parse_command(&cmd, (const gchar*) command) == 0)
-       {
-           DEBUG ('g', "Edit file command is not valid.\n");
-           gnome_cmd_show_message (*main_win, _("No valid command given."));
-           return;
-       }
-       else
-       {
-        GnomeCmdDir *dir = NULL;
-           gint     argc;
-           gchar  **argv  = NULL;
-           GError  *error = NULL;
-           DEBUG ('g', "Edit file: %s\n", cmd.c_str());
-           
-           g_shell_parse_argv (cmd.c_str(), &argc, &argv, NULL);
-           if (!g_spawn_async (gnome_cmd_dir_is_local (dir) ? dir_path.c_str() : NULL, argv, NULL, 
G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error))
-               gnome_cmd_error_message (_("Unable to execute command."), error);
-           
-           g_strfreev (argv);
-           g_free (command);
-       }
+               g_strfreev (argv);
+               g_free (command);
+           }
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]