Fix buffer unmerging if we only have one server.
This commit is contained in:
parent
9af4d65b67
commit
1ad643f206
1 changed files with 3 additions and 2 deletions
|
@ -86,12 +86,13 @@ def server_buffer_merge(buffer):
|
||||||
if SERVERS:
|
if SERVERS:
|
||||||
first = None
|
first = None
|
||||||
for server in SERVERS.values():
|
for server in SERVERS.values():
|
||||||
if server.server_buffer and buffer is not server.server_buffer:
|
if server.server_buffer:
|
||||||
first = server.server_buffer
|
first = server.server_buffer
|
||||||
break
|
break
|
||||||
if first:
|
if first:
|
||||||
num = W.buffer_get_integer(W.buffer_search_main(), "number")
|
num = W.buffer_get_integer(W.buffer_search_main(), "number")
|
||||||
W.buffer_unmerge(buffer, num + 1)
|
W.buffer_unmerge(buffer, num + 1)
|
||||||
|
if buffer is not server.server_buffer:
|
||||||
W.buffer_merge(buffer, first)
|
W.buffer_merge(buffer, first)
|
||||||
else:
|
else:
|
||||||
num = W.buffer_get_integer(W.buffer_search_main(), "number")
|
num = W.buffer_get_integer(W.buffer_search_main(), "number")
|
||||||
|
|
Loading…
Reference in a new issue