diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-08-12 01:22:43 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-08-12 01:22:43 +0200 |
| commit | ddd0b28faeafae83f8ad97bd78a10bb9b6eed33f (patch) | |
| tree | c0c59308fba07642d70630e3977cc4b2e7947f23 | |
| parent | b3d42f02b054111572d44c14625a009237af0bd5 (diff) | |
| download | vis-lspc-ddd0b28faeafae83f8ad97bd78a10bb9b6eed33f.tar.gz vis-lspc-ddd0b28faeafae83f8ad97bd78a10bb9b6eed33f.zip | |
reset the window focus after showing a message
| -rw-r--r-- | init.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -512,6 +512,8 @@ local function vis_apply_textEdits(win, file, textEdits) end local function lspc_show_message(msg, hdr, syntax) + local current_win = vis.win + if lspc.show_message == 'message' then vis:message((hdr or '') .. msg) @@ -526,6 +528,9 @@ local function lspc_show_message(msg, hdr, syntax) else lspc_err('invalid message configuration "' .. lspc.show_message .. '".') end + + -- reset the focus to the current window + vis.win = current_win end -- apply a WorkspaceEdit received from the language server |
