aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_editor.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-09-24 04:46:50 -0700
committerGitHub <noreply@github.com>2024-09-24 04:46:50 -0700
commit3f6bc34e663c62bc8899dcdc65bf204b2ccfdaec (patch)
tree447732924440ecc91783e26232cd77dc80a1049b /runtime/lua/vim/_editor.lua
parent2276743cb8e13483ba15695ef0a1ea65263e825f (diff)
downloadrneovim-3f6bc34e663c62bc8899dcdc65bf204b2ccfdaec.tar.gz
rneovim-3f6bc34e663c62bc8899dcdc65bf204b2ccfdaec.tar.bz2
rneovim-3f6bc34e663c62bc8899dcdc65bf204b2ccfdaec.zip
docs: lua error patterns #30240
Co-authored-by: Mathias Fussenegger <f.mathias@zignar.net> Co-authored-by: Ananth Bhaskararaman <antsub@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
-rw-r--r--runtime/lua/vim/_editor.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua
index 7b5570cc99..cb864bd974 100644
--- a/runtime/lua/vim/_editor.lua
+++ b/runtime/lua/vim/_editor.lua
@@ -208,8 +208,10 @@ vim.inspect = vim.inspect
do
local tdots, tick, got_line1, undo_started, trailing_nl = 0, 0, false, false, false
- --- Paste handler, invoked by |nvim_paste()| when a conforming UI
- --- (such as the |TUI|) pastes text into the editor.
+ --- Paste handler, invoked by |nvim_paste()|.
+ ---
+ --- Note: This is provided only as a "hook", don't call it directly; call |nvim_paste()| instead,
+ --- which arranges redo (dot-repeat) and invokes `vim.paste`.
---
--- Example: To remove ANSI color codes when pasting:
---