Fix server command completion.

This commit is contained in:
poljar (Damir Jelić) 2018-02-01 13:19:59 +01:00
parent 69a6b5e40b
commit 576096a70e
2 changed files with 3 additions and 2 deletions

View file

@ -70,6 +70,7 @@ from matrix.bar_items import (
from matrix.completion import (
init_completion,
matrix_command_completion_cb,
matrix_server_command_completion_cb,
matrix_debug_completion_cb,
matrix_message_completion_cb,
matrix_server_completion_cb

View file

@ -32,7 +32,7 @@ def add_servers_to_completion(completion):
@utf8_decode
def server_command_completion_cb(data, completion_item, buffer, completion):
def matrix_server_command_completion_cb(data, completion_item, buffer, completion):
buffer_input = W.buffer_get_string(buffer, "input").split()
args = buffer_input[1:]
@ -155,7 +155,7 @@ def init_completion():
W.hook_completion(
"matrix_server_commands",
"Matrix server completion",
"server_command_completion_cb",
"matrix_server_command_completion_cb",
""
)