Use the propper reference for server buffer merges.

This commit is contained in:
poljar (Damir Jelić) 2018-02-20 12:40:39 +01:00
parent ed16113afe
commit 779e346fb3

View file

@ -92,7 +92,7 @@ def server_buffer_merge(buffer):
if first:
num = W.buffer_get_integer(W.buffer_search_main(), "number")
W.buffer_unmerge(buffer, num + 1)
if buffer is not server.server_buffer:
if buffer is not first:
W.buffer_merge(buffer, first)
else:
num = W.buffer_get_integer(W.buffer_search_main(), "number")