diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-05-06 04:42:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 04:42:30 -0700 |
commit | 783c1e596c35e44e9699e5a1881d3c8f5c4fc596 (patch) | |
tree | fdef03ec82aa36b4d2feb96b58cbd8a45eb95f1c /runtime/lua/vim/snippet.lua | |
parent | b024643ca7571cffb3dcc79c21dbccfe14aa3a6f (diff) | |
download | rneovim-783c1e596c35e44e9699e5a1881d3c8f5c4fc596.tar.gz rneovim-783c1e596c35e44e9699e5a1881d3c8f5c4fc596.tar.bz2 rneovim-783c1e596c35e44e9699e5a1881d3c8f5c4fc596.zip |
refactor(snippet): rename exit() => stop() #28628
Diffstat (limited to 'runtime/lua/vim/snippet.lua')
-rw-r--r-- | runtime/lua/vim/snippet.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/snippet.lua b/runtime/lua/vim/snippet.lua index 18c613cb85..8fe03b3882 100644 --- a/runtime/lua/vim/snippet.lua +++ b/runtime/lua/vim/snippet.lua @@ -343,7 +343,7 @@ local function setup_autocmds(bufnr) or cursor_row > snippet_range[3] or (cursor_row == snippet_range[3] and cursor_col > snippet_range[4]) then - M.exit() + M.stop() return true end @@ -362,7 +362,7 @@ local function setup_autocmds(bufnr) end -- The cursor is either not on a tabstop or we reached the end, so exit the session. - M.exit() + M.stop() return true end, }) @@ -378,7 +378,7 @@ local function setup_autocmds(bufnr) (snippet_range[1] == snippet_range[3] and snippet_range[2] == snippet_range[4]) or snippet_range[3] + 1 > vim.fn.line('$') then - M.exit() + M.stop() end if not M.active() then @@ -615,7 +615,7 @@ function M.active(filter) end --- Exits the current snippet. -function M.exit() +function M.stop() if not M.active() then return end |