From 40a6c8cb646ab76bd07be79fed6693167c549e3f Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 27 Nov 2004 21:10:11 +0000 Subject: [PATCH] more formatting fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2147 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/nano.c | 12 ++++++------ src/search.c | 12 ++++++------ src/utils.c | 2 +- src/winio.c | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/nano.c b/src/nano.c index 779facbc..18cb1bc2 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1252,8 +1252,8 @@ void do_delete(void) /* Do we have to call edit_refresh(), or can we get away with * update_line()? */ - assert(current != NULL && current->data != NULL && current_x <= - strlen(current->data)); + assert(current != NULL && current->data != NULL && + current_x <= strlen(current->data)); placewewant = xplustabs(); @@ -1531,8 +1531,8 @@ bool do_wrap(filestruct *inptr) word_back = i; /* If we have found a legal wrap point and the current word * extends too far, then we stop. */ - if (wrap_loc != -1 && strnlenpt(inptr->data, word_back + 1) > - fill) + if (wrap_loc != -1 && + strnlenpt(inptr->data, word_back + 1) > fill) break; /* We record the latest legal wrap point. */ if (word_back != i && !isblank(wrap_line[1])) @@ -2893,8 +2893,8 @@ void do_justify(bool full_justify) #endif } #ifndef NANO_SMALL - if (mark_beginbuf == current && mark_beginx > - break_pos) { + if (mark_beginbuf == current && + mark_beginx > break_pos) { mark_beginbuf = current->next; mark_beginx -= break_pos + 1 - indent_len; } diff --git a/src/search.c b/src/search.c index fb775b69..ee105f8e 100644 --- a/src/search.c +++ b/src/search.c @@ -584,8 +584,8 @@ int replace_regexp(char *string, bool create_flag) while (*c != '\0') { int num = (int)(*(c + 1) - '0'); - if (*c != '\\' || num < 1 || num > 9 || num > - search_regexp.re_nsub) { + if (*c != '\\' || num < 1 || num > 9 || + num > search_regexp.re_nsub) { if (create_flag) *string++ = *c; c++; @@ -790,8 +790,8 @@ ssize_t do_replace_loop(const char *needle, const filestruct * the top of it, don't change mark_beginx. */ if (!old_mark_set || !right_side_up) { /* Keep mark_beginx in sync with the text changes. */ - if (current == mark_beginbuf && mark_beginx > - current_x) { + if (current == mark_beginbuf && + mark_beginx > current_x) { if (mark_beginx < current_x + match_len) mark_beginx = current_x; else @@ -804,8 +804,8 @@ ssize_t do_replace_loop(const char *needle, const filestruct if (!old_mark_set || right_side_up) { #endif /* Keep real_current_x in sync with the text changes. */ - if (current == real_current && current_x <= - *real_current_x) { + if (current == real_current && + current_x <= *real_current_x) { if (*real_current_x < current_x + match_len) *real_current_x = current_x + match_len; *real_current_x += length_change; diff --git a/src/utils.c b/src/utils.c index 7ee72f1b..da494e0f 100644 --- a/src/utils.c +++ b/src/utils.c @@ -467,7 +467,7 @@ void mark_order(const filestruct **top, size_t *top_x, const filestruct assert(top != NULL && top_x != NULL && bot != NULL && bot_x != NULL); if ((current->lineno == mark_beginbuf->lineno && current_x > - mark_beginx) || current->lineno > mark_beginbuf->lineno) { + mark_beginx) || current->lineno > mark_beginbuf->lineno) { *top = mark_beginbuf; *top_x = mark_beginx; *bot = current; diff --git a/src/winio.c b/src/winio.c index 2f6ca795..3e5fb5e6 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1310,8 +1310,8 @@ int get_untranslated_kbinput(int kbinput, size_t position, bool * the first digit), increment the ASCII digit counter and * interpret the digit. If the digit sequence's range is not * limited to 2XX, fall through. */ - if (position == ascii_digits && kbinput >= '0' && kbinput <= - '9') { + if (position == ascii_digits && kbinput >= '0' && + kbinput <= '9') { if (kbinput <= '2' || ascii_digits > 0) { ascii_digits++; kbinput = get_ascii_kbinput(kbinput, ascii_digits