Fix server command completion.
This commit is contained in:
parent
69a6b5e40b
commit
576096a70e
2 changed files with 3 additions and 2 deletions
1
main.py
1
main.py
|
@ -70,6 +70,7 @@ from matrix.bar_items import (
|
||||||
from matrix.completion import (
|
from matrix.completion import (
|
||||||
init_completion,
|
init_completion,
|
||||||
matrix_command_completion_cb,
|
matrix_command_completion_cb,
|
||||||
|
matrix_server_command_completion_cb,
|
||||||
matrix_debug_completion_cb,
|
matrix_debug_completion_cb,
|
||||||
matrix_message_completion_cb,
|
matrix_message_completion_cb,
|
||||||
matrix_server_completion_cb
|
matrix_server_completion_cb
|
||||||
|
|
|
@ -32,7 +32,7 @@ def add_servers_to_completion(completion):
|
||||||
|
|
||||||
|
|
||||||
@utf8_decode
|
@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()
|
buffer_input = W.buffer_get_string(buffer, "input").split()
|
||||||
|
|
||||||
args = buffer_input[1:]
|
args = buffer_input[1:]
|
||||||
|
@ -155,7 +155,7 @@ def init_completion():
|
||||||
W.hook_completion(
|
W.hook_completion(
|
||||||
"matrix_server_commands",
|
"matrix_server_commands",
|
||||||
"Matrix server completion",
|
"Matrix server completion",
|
||||||
"server_command_completion_cb",
|
"matrix_server_command_completion_cb",
|
||||||
""
|
""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue