- Update copyright notices, as Thijs Kinkhorst's copyrights have
now been assigned to the Free Software Foundation. Changes to
doc/man/rnano.1 and doc/man/fr/rnano.1. (DLR)
+ - Fix minor display and cursor placement problems when scrolling
+ between pages at the statusbar prompt. Changes to
+ do_statusbar_mouse(), reset_statusbar_cursor(),
+ update_statusbar_line(), and
+ need_statusbar_horizontal_update(). (DLR)
- chars.c:
nstrncasecmp(), mbstrncasecmp()
- For efficiency, return zero immediately if s1 and s2 point to
assert(prompt != NULL);
- start_col = strlenpt(prompt) + 1;
+ start_col = strlenpt(prompt) + 2;
/* Move to where the click occurred. */
- if (mouse_x > start_col && mouse_y == 0) {
+ if (mouse_x >= start_col && mouse_y == 0) {
size_t pww_save = statusbar_pww;
statusbar_x = actual_x(answer,
get_statusbar_page_start(start_col, start_col +
- statusbar_xplustabs()) + mouse_x -
- start_col - 1);
+ statusbar_xplustabs()) + mouse_x - start_col);
statusbar_pww = statusbar_xplustabs();
if (need_statusbar_horizontal_update(pww_save))
/* Put the cursor in the statusbar prompt at statusbar_x. */
void reset_statusbar_cursor(void)
{
- size_t start_col = strlenpt(prompt) + 1;
+ size_t start_col = strlenpt(prompt) + 2;
size_t xpt = statusbar_xplustabs();
- wmove(bottomwin, 0, start_col + 1 + xpt -
+ wmove(bottomwin, 0, start_col + xpt -
get_statusbar_page_start(start_col, start_col + xpt));
}
assert(prompt != NULL && index <= strlen(curranswer));
- start_col = strlenpt(prompt) + 1;
+ start_col = strlenpt(prompt) + 2;
index = strnlenpt(curranswer, index);
page_start = get_statusbar_page_start(start_col, start_col + index);
* different pages. */
bool need_statusbar_horizontal_update(size_t pww_save)
{
- size_t start_col = strlenpt(prompt) + 1;
+ size_t start_col = strlenpt(prompt) + 2;
return get_statusbar_page_start(start_col, start_col + pww_save) !=
get_statusbar_page_start(start_col, start_col + statusbar_pww);