diff options
author | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-21 10:04:32 -0800 |
---|---|---|
committer | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-21 10:04:32 -0800 |
commit | 6a5140137865025dee68e75a4e8feb2d20a430cf (patch) | |
tree | bd9815ea488c4ee77bdfd6631ba7159f039ebe3e /src/nvim/lua/vim.lua | |
parent | b7170f2d722cee24a62eb74ac836d6192e5475dc (diff) | |
parent | cc5487e32f6fc6d0034634a1f9e736968afb4450 (diff) | |
download | rneovim-6a5140137865025dee68e75a4e8feb2d20a430cf.tar.gz rneovim-6a5140137865025dee68e75a4e8feb2d20a430cf.tar.bz2 rneovim-6a5140137865025dee68e75a4e8feb2d20a430cf.zip |
Merge remote-tracking branch 'origin/master' into lsp-followup
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r-- | src/nvim/lua/vim.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index ce24d1716d..1665a55aff 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -167,8 +167,7 @@ end --- --- Example: To remove ANSI color codes when pasting: --- <pre> ---- vim.paste = (function() ---- local overridden = vim.paste +--- vim.paste = (function(overridden) --- return function(lines, phase) --- for i,line in ipairs(lines) do --- -- Scrub ANSI color codes from paste input. @@ -176,7 +175,7 @@ end --- end --- overridden(lines, phase) --- end ---- end)() +--- end)(vim.paste) --- </pre> --- --@see |paste| |