mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
Do not restore the previous view when deleting the first line of the current one.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4342 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
35574b10c4
commit
c08a754d1e
1 changed files with 1 additions and 2 deletions
|
|
@ -1095,8 +1095,7 @@ static void view_remove_line_update_startline(TEXT_BUFFER_VIEW_REC *view,
|
||||||
int scroll;
|
int scroll;
|
||||||
|
|
||||||
if (view->startline == line) {
|
if (view->startline == line) {
|
||||||
view->startline = view->startline->prev != NULL ?
|
view->startline = view->startline->next;
|
||||||
view->startline->prev : view->startline->next;
|
|
||||||
view->subline = 0;
|
view->subline = 0;
|
||||||
} else {
|
} else {
|
||||||
scroll = view->height -
|
scroll = view->height -
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue