From: Andrew Borodin Date: Fri, 29 Mar 2013 15:06:27 +0000 (+0400) Subject: Indentation. X-Git-Tag: 4.8.8~3 X-Git-Url: https://repo.or.cz/w/midnight-commander.git/commitdiff_plain/b7d42cc1e5bc0d760cf9d79cc4fe2683a82f438c Indentation. Signed-off-by: Andrew Borodin --- diff --git a/src/editor/editcmd.c b/src/editor/editcmd.c index c2425591a..8affddad8 100644 --- a/src/editor/editcmd.c +++ b/src/editor/editcmd.c @@ -3304,7 +3304,8 @@ edit_complete_word_cmd (WEdit * edit) match_expr = g_string_new ("(^|\\s+|\\b)"); for (i = 0; i < word_len; i++) g_string_append_c (match_expr, edit_get_byte (edit, word_start + i)); - g_string_append (match_expr, "[^\\s\\.=\\+\\[\\]\\(\\)\\,\\;\\:\\\"\\'\\-\\?\\/\\|\\\\\\{\\}\\*\\&\\^\\%%\\$#@\\!]+"); + g_string_append (match_expr, + "[^\\s\\.=\\+\\[\\]\\(\\)\\,\\;\\:\\\"\\'\\-\\?\\/\\|\\\\\\{\\}\\*\\&\\^\\%%\\$#@\\!]+"); /* collect the possible completions */ /* start search from begin to end of file */ diff --git a/src/editor/editcmd_dialogs.c b/src/editor/editcmd_dialogs.c index 559e4c357..4b39414ca 100644 --- a/src/editor/editcmd_dialogs.c +++ b/src/editor/editcmd_dialogs.c @@ -352,8 +352,7 @@ editcmd_dialog_completion_show (const WEdit * edit, int max_len, GString ** comp compl_dlg_w = max_len + 4; start_x = we->x + edit->curs_col + edit->start_col + EDIT_TEXT_HORIZONTAL_OFFSET + (edit->fullscreen ? 0 : 1) + option_line_state_width; - start_y = we->y + edit->curs_row + EDIT_TEXT_VERTICAL_OFFSET + - (edit->fullscreen ? 0 : 1) + 1; + start_y = we->y + edit->curs_row + EDIT_TEXT_VERTICAL_OFFSET + (edit->fullscreen ? 0 : 1) + 1; if (start_x < 0) start_x = 0;