titlebar()
- Use actual_x() to calculate the number of characters VERMSG
takes up, in case it's UTF-8. (DLR)
+ do_cursorpos()
+ - Properly display the value of totsize as unsigned. (DLR)
do_help()
- Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
consistency. (DLR)
sameline = (mouse_y == current_y);
/* Move to where the click occurred. */
- for (; current_y < mouse_y && current->next != NULL; current_y++)
+ for (; current_y < mouse_y && current->next != NULL;
+ current_y++)
current = current->next;
- for (; current_y > mouse_y && current->prev != NULL; current_y--)
+ for (; current_y > mouse_y && current->prev != NULL;
+ current_y--)
current = current->prev;
- xcur = actual_x(current->data, get_page_start(xplustabs()) +
- mouse_x);
+ xcur = actual_x(current->data,
+ get_page_start(xplustabs()) + mouse_x);
#ifndef NANO_SMALL
/* Clicking where the cursor is toggles the mark, as does
int bytepct = (totsize == 0) ? 0 : 100 * i / totsize;
statusbar(
- _("line %ld/%ld (%d%%), col %lu/%lu (%d%%), char %lu/%ld (%d%%)"),
+ _("line %ld/%ld (%d%%), col %lu/%lu (%d%%), char %lu/%lu (%d%%)"),
current->lineno, totlines, linepct, (unsigned long)xpt,
(unsigned long)cur_len, colpct, (unsigned long)i,
(unsigned long)totsize, bytepct);