Skip to content

Commit befa9a0

Browse files
committed
maint: fix indentation with clang-format-20
Signed-off-by: Yury V. Zaytsev <[email protected]>
1 parent 0ce2220 commit befa9a0

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/editor/editcomplete.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ edit_collect_completions_get_current_word (edit_search_status_msg_t *esm, mc_sea
103103
*/
104104

105105
static void
106-
edit_collect_completion_from_one_buffer (gboolean active_buffer, GQueue * * compl,
107-
mc_search_t *srch, edit_search_status_msg_t *esm,
108-
off_t word_start, gsize word_len, off_t last_byte,
109-
GString *current_word, int *max_width)
106+
edit_collect_completion_from_one_buffer (gboolean active_buffer, GQueue **compl, mc_search_t *srch,
107+
edit_search_status_msg_t *esm, off_t word_start,
108+
gsize word_len, off_t last_byte, GString *current_word,
109+
int *max_width)
110110
{
111111
GString *temp = NULL;
112112
gsize len = 0;
@@ -146,7 +146,7 @@ edit_collect_completion_from_one_buffer (gboolean active_buffer, GQueue * * comp
146146
if (current_word != NULL && g_string_equal (current_word, temp))
147147
continue;
148148

149-
if (*compl== NULL)
149+
if (*compl == NULL)
150150
*compl = g_queue_new ();
151151
else
152152
{
@@ -339,7 +339,7 @@ edit_completion_string_free (gpointer data)
339339

340340
/* Public function for unit tests */
341341
char *
342-
edit_completion_dialog_show (const WEdit *edit, GQueue * compl, int max_width)
342+
edit_completion_dialog_show (const WEdit *edit, GQueue *compl, int max_width)
343343
{
344344
const WRect *we = &CONST_WIDGET (edit)->rect;
345345
int start_x, start_y, offset;
@@ -415,7 +415,7 @@ edit_complete_word_cmd (WEdit *edit)
415415
gsize word_len = 0;
416416
GString *match_expr;
417417
gsize i;
418-
GQueue * compl; // completions: list of GString*
418+
GQueue *compl; // completions: list of GString*
419419
int max_width;
420420

421421
// search start of word to be completed
@@ -436,7 +436,7 @@ edit_complete_word_cmd (WEdit *edit)
436436

437437
g_string_free (match_expr, TRUE);
438438

439-
if (compl== NULL)
439+
if (compl == NULL)
440440
return;
441441

442442
if (g_queue_get_length (compl) == 1)

tests/src/editor/edit_complete_word_cmd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static char *edit_completion_dialog_show__return_value;
9696

9797
/* @Mock */
9898
char *
99-
edit_completion_dialog_show (const WEdit *edit, GQueue * compl, int max_width)
99+
edit_completion_dialog_show (const WEdit *edit, GQueue *compl, int max_width)
100100
{
101101

102102
edit_completion_dialog_show__edit = edit;

0 commit comments

Comments
 (0)