Browse Source

Indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 1 year ago
parent
commit
f1cf92f435

+ 1 - 1
lib/search.h

@@ -114,7 +114,7 @@ typedef struct mc_search_struct
     GString *regex_buffer;
 #ifdef SEARCH_TYPE_PCRE
 #ifdef HAVE_PCRE2
-    /* pcre2 will provide a pointer to a match_data structure that can be manipulated like an iovector*/
+    /* pcre2 will provide a pointer to a match_data structure that can be manipulated like an iovector */
     size_t *iovector;
 #else
     int iovector[MC_SEARCH__NUM_REPLACE_ARGS * 2];

+ 1 - 2
lib/widget/menu.c

@@ -198,8 +198,7 @@ menubar_draw_drop (const WMenuBar * menubar)
     tty_draw_box (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, FALSE);
 
     for (i = 0; i < count; i++)
-        menubar_paint_idx (menubar, i,
-                           i == menu->current ? MENU_SELECTED_COLOR : MENU_ENTRY_COLOR);
+        menubar_paint_idx (menubar, i, i == menu->current ? MENU_SELECTED_COLOR : MENU_ENTRY_COLOR);
 }
 
 /* --------------------------------------------------------------------------------------------- */

+ 2 - 4
src/diffviewer/ydiff.c

@@ -3538,8 +3538,7 @@ dview_diff_cmd (const void *f0, const void *f1)
             const file_entry_t *fe1;
 
             fe0 = panel_current_entry (panel0);
-            file0 =
-                vfs_path_append_new (panel0->cwd_vpath, fe0->fname->str, (char *) NULL);
+            file0 = vfs_path_append_new (panel0->cwd_vpath, fe0->fname->str, (char *) NULL);
             is_dir0 = S_ISDIR (fe0->st.st_mode);
             if (is_dir0)
             {
@@ -3549,8 +3548,7 @@ dview_diff_cmd (const void *f0, const void *f1)
             }
 
             fe1 = panel_current_entry (panel1);
-            file1 =
-                vfs_path_append_new (panel1->cwd_vpath, fe1->fname->str, (char *) NULL);
+            file1 = vfs_path_append_new (panel1->cwd_vpath, fe1->fname->str, (char *) NULL);
             is_dir1 = S_ISDIR (fe1->st.st_mode);
             if (is_dir1)
             {

+ 1 - 1
src/editor/syntax.c

@@ -1425,7 +1425,7 @@ exec_edit_syntax_dialog (const GPtrArray * names, const char *current_syntax)
     Listbox *syntaxlist;
 
     syntaxlist = listbox_window_new (LIST_LINES, MAX_ENTRY_LEN,
-                                        _("Choose syntax highlighting"), NULL);
+                                     _("Choose syntax highlighting"), NULL);
     LISTBOX_APPEND_TEXT (syntaxlist, 'A', _("< Auto >"), NULL, FALSE);
     LISTBOX_APPEND_TEXT (syntaxlist, 'R', _("< Reload Current Syntax >"), NULL, FALSE);
 

+ 6 - 2
src/filemanager/find.c

@@ -1931,9 +1931,13 @@ find_cmd (WPanel * panel)
                 dirname_vpath = vfs_path_from_str (dirname);
                 panel_cd (panel, dirname_vpath, cd_exact);
                 vfs_path_free (dirname_vpath, TRUE);
+                /* *INDENT-OFF* */
                 if (filename != NULL)
-                    panel_set_current_by_name (panel, filename + (content_pattern != NULL
-                                               ? strchr (filename + 4, ':') - filename + 1 : 4));
+                    panel_set_current_by_name (panel,
+                                               filename + (content_pattern != NULL
+                                                           ? strchr (filename + 4, ':') - filename + 1
+                                                           : 4));
+                /* *INDENT-ON* */
             }
             else if (filename != NULL)
             {

+ 3 - 3
src/vfs/tar/tar-internal.h

@@ -202,9 +202,9 @@ union block
 /* Information about a sparse file */
 struct sp_array
 {
-    off_t offset;       /* chunk offset in file */
-    off_t numbytes;     /* length of chunk */
-    off_t arch_offset;  /* chunk offset in archive */
+    off_t offset;               /* chunk offset in file */
+    off_t numbytes;             /* length of chunk */
+    off_t arch_offset;          /* chunk offset in archive */
 };
 
 enum dump_status

+ 1 - 2
tests/src/execute__common.c

@@ -56,8 +56,7 @@ vpath_captured_free (gpointer data)
 static void
 vfs_file_is_local__init (void)
 {
-    vfs_file_is_local__vpath__captured =
-        g_ptr_array_new_with_free_func (vpath_captured_free);
+    vfs_file_is_local__vpath__captured = g_ptr_array_new_with_free_func (vpath_captured_free);
 }
 
 static void