nvim: fix typo in comment

This commit is contained in:
Fernando Schauenburg 2024-07-21 19:19:05 +02:00
parent c0d1bd2df8
commit 0f6e9fc070

View file

@ -20,7 +20,7 @@ M.preserve_register = function(reg, func)
end
---Get selected text.
---@return string: selected text, or work under cursor if not in visual mode.
---@return string: selected text, or word under cursor if not in visual mode.
M.get_selected_text = function()
if vim.fn.mode() ~= "v" then
return vim.fn.expand("<cword>")