2015-04-20 Benno Schulenberg <bensberg@justemail.net>
* src/winio.c (need_horizontal_update, need_vertical_update): Fuse
two identical functions into one: need_screen_update().
+ * src/prompt.c (need_statusbar_horizontal_update): Rename function
+ to need_statusbar_update() as there is no vertical counterpart.
2015-04-18 Benno Schulenberg <bensberg@justemail.net>
* src/global.c, src/nano.c, doc/man/nanorc.5, doc/texinfo/nano.texi:
statusbar_xplustabs()) + mouse_x - start_col);
statusbar_pww = statusbar_xplustabs();
- if (need_statusbar_horizontal_update(pww_save))
+ if (need_statusbar_update(pww_save))
update_statusbar_line(answer, statusbar_x);
}
}
statusbar_pww = statusbar_xplustabs();
}
- if (need_statusbar_horizontal_update(pww_save))
+ if (need_statusbar_update(pww_save))
update_statusbar_line(answer, statusbar_x);
}
statusbar_x = strlen(answer);
statusbar_pww = statusbar_xplustabs();
- if (need_statusbar_horizontal_update(pww_save))
+ if (need_statusbar_update(pww_save))
update_statusbar_line(answer, statusbar_x);
}
statusbar_x = move_mbleft(answer, statusbar_x);
statusbar_pww = statusbar_xplustabs();
- if (need_statusbar_horizontal_update(pww_save))
+ if (need_statusbar_update(pww_save))
update_statusbar_line(answer, statusbar_x);
}
}
statusbar_x = move_mbright(answer, statusbar_x);
statusbar_pww = statusbar_xplustabs();
- if (need_statusbar_horizontal_update(pww_save))
+ if (need_statusbar_update(pww_save))
update_statusbar_line(answer, statusbar_x);
}
}
statusbar_pww = statusbar_xplustabs();
- if (need_statusbar_horizontal_update(pww_save))
+ if (need_statusbar_update(pww_save))
update_statusbar_line(answer, statusbar_x);
/* Return whether we started on a word. */
statusbar_pww = statusbar_xplustabs();
- if (need_statusbar_horizontal_update(pww_save))
+ if (need_statusbar_update(pww_save))
update_statusbar_line(answer, statusbar_x);
/* Return whether we started on a word. */
wnoutrefresh(bottomwin);
}
-/* Return TRUE if we need an update after moving horizontally, and FALSE
- * otherwise. We need one if pww_save and statusbar_pww are on
+/* Return TRUE if we need an update after moving the cursor, and FALSE
+ * otherwise. We need an update if pww_save and statusbar_pww are on
* different pages. */
-bool need_statusbar_horizontal_update(size_t pww_save)
+bool need_statusbar_update(size_t pww_save)
{
size_t start_col = strlenpt(prompt) + 2;
size_t get_statusbar_page_start(size_t start_col, size_t column);
void reset_statusbar_cursor(void);
void update_statusbar_line(const char *curranswer, size_t index);
-bool need_statusbar_horizontal_update(size_t pww_save);
+bool need_statusbar_update(size_t pww_save);
void total_statusbar_refresh(void (*refresh_func)(void));
functionptrtype get_prompt_string(int *value, bool allow_tabs,
#ifndef DISABLE_TABCOMP