From b4a10d82cc50bd55f91d98b31497df7021e731f3 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Mon, 10 Sep 2012 15:15:02 +0300 Subject: [PATCH] code indentation Signed-off-by: Slava Zanko --- src/editor/edit.c | 7 +++---- src/editor/editdraw.c | 8 +++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/editor/edit.c b/src/editor/edit.c index c702c1fd5..bfda1b923 100644 --- a/src/editor/edit.c +++ b/src/editor/edit.c @@ -2495,7 +2495,7 @@ edit_push_undo_action (WEdit * edit, long c) d = edit->undo_stack[(sp - 2) & edit->undo_stack_size_mask]; if (d == c && edit->undo_stack[spm1] > -1000000000) { - if (c < KEY_PRESS) /* --> no need to push multiple do-nothings */ + if (c < KEY_PRESS) /* --> no need to push multiple do-nothings */ edit->undo_stack[spm1]--; return; } @@ -2572,7 +2572,7 @@ edit_push_redo_action (WEdit * edit, long c) d = edit->redo_stack[(sp - 2) & edit->redo_stack_size_mask]; if (d == c && edit->redo_stack[spm1] > -1000000000) { - if (c < KEY_PRESS) /* --> no need to push multiple do-nothings */ + if (c < KEY_PRESS) /* --> no need to push multiple do-nothings */ edit->redo_stack[spm1]--; return; } @@ -3238,8 +3238,7 @@ edit_move_to_prev_col (WEdit * edit, off_t p) edit->curs_col -= (edit->curs_col % (HALF_TAB_SIZE * space_width)); p = edit_bol (edit, edit->curs1); edit_cursor_move (edit, - edit_move_forward3 (edit, p, edit->curs_col, - 0) - edit->curs1); + edit_move_forward3 (edit, p, edit->curs_col, 0) - edit->curs1); if (!left_of_four_spaces (edit)) edit_cursor_move (edit, edit_move_forward3 (edit, p, q, 0) - edit->curs1); } diff --git a/src/editor/editdraw.c b/src/editor/editdraw.c index 2d119f6d1..f9315963a 100644 --- a/src/editor/editdraw.c +++ b/src/editor/editdraw.c @@ -164,8 +164,7 @@ status_string (WEdit * edit, char *s, int w) #ifdef HAVE_CHARSET mc_global.source_codepage >= 0 ? get_codepage_id (mc_global.source_codepage) : #endif - "" - ); + ""); else g_snprintf (s, w, "[%c%c%c%c] %2ld L:[%3ld+%2ld %3ld/%3ld] *(%-4ld/%4ldb) %s %s", @@ -181,8 +180,7 @@ status_string (WEdit * edit, char *s, int w) #ifdef HAVE_CHARSET mc_global.source_codepage >= 0 ? get_codepage_id (mc_global.source_codepage) : #endif - "" - ); + ""); } /* --------------------------------------------------------------------------------------------- */ @@ -629,7 +627,7 @@ edit_draw_this_line (WEdit * edit, off_t b, long row, long start_col, long end_c switch (c) { case '\n': - col = end_col - edit->start_col + 1; /* quit */ + col = end_col - edit->start_col + 1; /* quit */ break; case '\t': i = TAB_SIZE - ((int) col % TAB_SIZE); -- 2.11.4.GIT