Makes /clear behavior configurable.
This commit is contained in:
@@ -562,6 +562,11 @@ win_sub_page_up(ProfWin *window)
|
||||
void
|
||||
win_clear(ProfWin *window)
|
||||
{
|
||||
if (!prefs_get_boolean(PREF_CLEAR_PERSIST_HISTORY)) {
|
||||
werase(window->layout->win);
|
||||
return;
|
||||
}
|
||||
|
||||
int y = getcury(window->layout->win);
|
||||
int *page_start = &(window->layout->y_pos);
|
||||
*page_start = y;
|
||||
|
||||
Reference in New Issue
Block a user