Mercurial > vim
annotate src/testdir/testluaplugin/lua/testluaplugin/hello.lua @ 29214:9e0b45df95b0 v8.2.5126
patch 8.2.5126: substitute may overrun destination buffer
Commit: https://github.com/vim/vim/commit/d6211a52ab9f53b82f884561ed43d2fe4d24ff7d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 18 19:48:14 2022 +0100
patch 8.2.5126: substitute may overrun destination buffer
Problem: Substitute may overrun destination buffer.
Solution: Disallow switching buffers in a substitute expression.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 18 Jun 2022 21:00:04 +0200 |
parents | 054ba681412d |
children |
rev | line source |
---|---|
20609
054ba681412d
patch 8.2.0858: not easy to require Lua modules
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 local function hello() |
054ba681412d
patch 8.2.0858: not easy to require Lua modules
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 return "hello from lua" |
054ba681412d
patch 8.2.0858: not easy to require Lua modules
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 end |
054ba681412d
patch 8.2.0858: not easy to require Lua modules
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
4 |
054ba681412d
patch 8.2.0858: not easy to require Lua modules
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 return { |
054ba681412d
patch 8.2.0858: not easy to require Lua modules
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 hello = hello |
054ba681412d
patch 8.2.0858: not easy to require Lua modules
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 } |