1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Change /clear command to preserve window history

This commit is contained in:
James Booth 2016-09-26 23:22:55 +01:00
parent b087f84d95
commit ce181c76f1

View File

@ -561,7 +561,9 @@ win_sub_page_up(ProfWin *window)
void
win_clear(ProfWin *window)
{
werase(window->layout->win);
int y = getcury(window->layout->win);
window->layout->y_pos = y;
window->layout->paged = 1;
win_update_virtual(window);
}