Skip to content

Commit 023cfa1

Browse files
committed
Fix Neovim error notification Lua injection
1 parent 033347f commit 023cfa1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/lib-neovim-common/src/neovimApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,6 @@ export async function showErrorMessage(
164164
client: NeovimClient,
165165
message: string,
166166
): Promise<void> {
167-
const luaCode = `vim.notify("${message}")`;
168-
await client.executeLua(luaCode, []);
167+
const luaCode = "vim.notify(...)";
168+
await client.executeLua(luaCode, [message]);
169169
}

0 commit comments

Comments
 (0)