nvim: fix typo in comment
This commit is contained in:
parent
c0d1bd2df8
commit
0f6e9fc070
1 changed files with 1 additions and 1 deletions
|
@ -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>")
|
||||
|
|
Loading…
Add table
Reference in a new issue