/* 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();
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]))
#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;
}
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++;
* 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
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;
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;
* 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