diff options
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/.luacheckrc (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/.luacheckrc) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/CHANGELOG.md (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/CHANGELOG.md) | 7 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/CONTRIBUTING.md (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/CONTRIBUTING.md) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/LICENSE (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/LICENSE) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/README.md (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/README.md) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/doc/nvim-surround.txt (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/doc/nvim-surround.txt) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/annotations.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/annotations.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/buffer.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/buffer.lua) | 8 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/cache.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/cache.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/config.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/config.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/functional.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/functional.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/init.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/init.lua) | 4 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/input.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/input.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/motions.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/motions.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/patterns.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/patterns.lua) | 34 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/queries.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/queries.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/treesitter.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/treesitter.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/utils.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/utils.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/queries/lua/nvim-surround.scm (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/queries/lua/nvim-surround.scm) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/selene.toml (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/selene.toml) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/stylua.toml (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/stylua.toml) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/aliases_spec.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/aliases_spec.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/basics_spec.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/basics_spec.lua) | 31 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/configuration_spec.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/configuration_spec.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/dot_repeat_spec.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/dot_repeat_spec.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/function_calls_spec.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/function_calls_spec.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/html_tags_spec.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/html_tags_spec.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/jumps_spec.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/jumps_spec.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/minimal_init.lua (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/minimal_init.lua) | 0 | ||||
-rw-r--r-- | stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/vim.yml (renamed from stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/vim.yml) | 0 |
30 files changed, 63 insertions, 21 deletions
diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/.luacheckrc b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/.luacheckrc index 5a7e6a1..5a7e6a1 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/.luacheckrc +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/.luacheckrc diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/CHANGELOG.md b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/CHANGELOG.md index 0345eb5..b9ce9d6 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/CHANGELOG.md +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.1.7](https://github.com/kylechui/nvim-surround/compare/v2.1.6...v2.1.7) (2024-04-30) + + +### Bug Fixes + +* Handle multi-byte characters for change/delete. ([#318](https://github.com/kylechui/nvim-surround/issues/318)) ([f929665](https://github.com/kylechui/nvim-surround/commit/f9296652f5b9cf13c15919714e4e7b9349906c26)) + ## [2.1.6](https://github.com/kylechui/nvim-surround/compare/v2.1.5...v2.1.6) (2024-04-11) diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/CONTRIBUTING.md b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/CONTRIBUTING.md index 3eecaa4..3eecaa4 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/CONTRIBUTING.md +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/CONTRIBUTING.md diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/LICENSE b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/LICENSE index 391b916..391b916 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/LICENSE +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/LICENSE diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/README.md b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/README.md index 90130f1..90130f1 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/README.md +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/README.md diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/doc/nvim-surround.txt b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/doc/nvim-surround.txt index 1553e1e..1553e1e 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/doc/nvim-surround.txt +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/doc/nvim-surround.txt diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/annotations.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/annotations.lua index b8172c0..b8172c0 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/annotations.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/annotations.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/buffer.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/buffer.lua index 1716ce9..f591907 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/buffer.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/buffer.lua @@ -139,14 +139,10 @@ M.get_first_byte = function(pos) end -- Gets the position of the last byte of a character, according to the UTF-8 standard. ----@param pos position|nil The position of the beginning of the character. ----@return position|nil @The position of the last byte of the character. +---@param pos position The position of the beginning of the character. +---@return position @The position of the last byte of the character. ---@nodiscard M.get_last_byte = function(pos) - if not pos then - return nil - end - local byte = string.byte(M.get_line(pos[1]):sub(pos[2], pos[2])) if not byte then return pos diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/cache.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/cache.lua index 7383513..7383513 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/cache.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/cache.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/config.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/config.lua index d78c558..d78c558 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/config.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/config.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/functional.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/functional.lua index 450e5cf..450e5cf 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/functional.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/functional.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/init.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/init.lua index baca542..95d184f 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/init.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/init.lua @@ -130,9 +130,6 @@ M.visual_surround = function(args) end last_pos = buffer.get_last_byte(last_pos) - if not last_pos then - return - end buffer.insert_text({ last_pos[1], last_pos[2] + 1 }, delimiters[2]) buffer.insert_text(first_pos, delimiters[1]) end @@ -257,6 +254,7 @@ M.normal_callback = function(mode) buffer.set_mark("]", last_pos) end -- Move the last position to the last byte of the character, if necessary + ---@diagnostic disable-next-line buffer.set_mark("]", buffer.get_last_byte(buffer.get_mark("]"))) buffer.adjust_mark("[") diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/input.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/input.lua index 3c1b6ef..3c1b6ef 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/input.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/input.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/motions.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/motions.lua index 06e7877..06e7877 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/motions.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/motions.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/patterns.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/patterns.lua index 3236f3f..024998d 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/patterns.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/patterns.lua @@ -30,6 +30,16 @@ M.pos_to_index = function(pos) return #table.concat(buffer.get_lines(1, pos[1] - 1), "\n") + pos[2] + 1 end +-- Expands a selection to properly contain multi-byte characters. +---@param selection selection The given selection. +---@return selection @The adjusted selection, handling multi-byte characters. +---@nodiscard +M.adjust_selection = function(selection) + selection.first_pos = buffer.get_first_byte(selection.first_pos) + selection.last_pos = buffer.get_last_byte(selection.last_pos) + return selection +end + -- Returns a selection in the buffer based on a Lua pattern. ---@param find string The Lua pattern to find in the buffer. ---@return selection|nil @The closest selection matching the pattern, if any. @@ -58,10 +68,10 @@ M.get_selection = function(find) if not b_first or not b_last then return a_first and a_last - and { + and M.adjust_selection({ first_pos = M.index_to_pos(a_first), last_pos = M.index_to_pos(a_last), - } + }) end -- Adjust the selection character-wise local start_col, end_col = cursor_index, b_first @@ -83,24 +93,24 @@ M.get_selection = function(find) end -- If the cursor is inside the range then return it if b_last and b_first and b_last >= cursor_index then - return { + return M.adjust_selection({ first_pos = M.index_to_pos(b_first), last_pos = M.index_to_pos(b_last), - } + }) end -- Else if there's a range found after the cursor, return it if a_first and a_last then - return { + return M.adjust_selection({ first_pos = M.index_to_pos(a_first), last_pos = M.index_to_pos(a_last), - } + }) end -- Otherwise return the range found before the cursor, if one exists if b_first and b_last then - return { + return M.adjust_selection({ first_pos = M.index_to_pos(b_first), last_pos = M.index_to_pos(b_last), - } + }) end end @@ -142,14 +152,14 @@ M.get_selections = function(selection, pattern) local selections = { ---@cast first_index integer ---@cast last_index integer - left = { + left = M.adjust_selection({ first_pos = M.index_to_pos(offset + first_index - left_len - 1), last_pos = M.index_to_pos(offset + first_index - 2), - }, - right = { + }), + right = M.adjust_selection({ first_pos = M.index_to_pos(offset + last_index - right_len - 1), last_pos = M.index_to_pos(offset + last_index - 2), - }, + }), } -- Handle special case where the column is invalid if selections.left.last_pos[2] > #buffer.get_line(selections.left.last_pos[1]) then diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/queries.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/queries.lua index 1098b12..1098b12 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/queries.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/queries.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/treesitter.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/treesitter.lua index c0ce473..c0ce473 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/treesitter.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/treesitter.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/utils.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/utils.lua index e44f920..e44f920 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/lua/nvim-surround/utils.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/lua/nvim-surround/utils.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/queries/lua/nvim-surround.scm b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/queries/lua/nvim-surround.scm index 7f7188d..7f7188d 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/queries/lua/nvim-surround.scm +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/queries/lua/nvim-surround.scm diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/selene.toml b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/selene.toml index d03ab0a..d03ab0a 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/selene.toml +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/selene.toml diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/stylua.toml b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/stylua.toml index bab5533..bab5533 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/stylua.toml +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/stylua.toml diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/aliases_spec.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/aliases_spec.lua index 8f380ef..8f380ef 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/aliases_spec.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/aliases_spec.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/basics_spec.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/basics_spec.lua index 485471d..262170d 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/basics_spec.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/basics_spec.lua @@ -614,6 +614,37 @@ describe("nvim-surround", function() "。(。。。)。", "𐍈𐍈𐍈(𐍈𐍈𐍈𐍈)𐍈𐍈𐍈", }) + + require("nvim-surround").setup({ + surrounds = { + ["x"] = { + add = { "‘", "’" }, + find = "‘[^‘’]*’", + }, + ["y"] = { + add = { "‘‘", "’’" }, + find = "‘‘[^‘’]*’’", + delete = "^(‘‘)().-(’’)()$", + }, + }, + }) + set_lines({ + "‘foo bar’", + }) + set_curpos({ 1, 5 }) + vim.cmd("normal csx_") + check_lines({ + "_foo bar_", + }) + + set_lines({ + "‘‘foo bar baz’’", + }) + set_curpos({ 1, 3 }) + vim.cmd("normal dsy") + check_lines({ + "foo bar baz", + }) end) it("can properly use line-wise surrounds", function() diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/configuration_spec.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/configuration_spec.lua index 922f1fe..922f1fe 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/configuration_spec.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/configuration_spec.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/dot_repeat_spec.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/dot_repeat_spec.lua index e807d29..e807d29 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/dot_repeat_spec.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/dot_repeat_spec.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/function_calls_spec.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/function_calls_spec.lua index dbece58..dbece58 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/function_calls_spec.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/function_calls_spec.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/html_tags_spec.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/html_tags_spec.lua index 144dedb..144dedb 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/html_tags_spec.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/html_tags_spec.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/jumps_spec.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/jumps_spec.lua index f739215..f739215 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/jumps_spec.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/jumps_spec.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/minimal_init.lua b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/minimal_init.lua index f2ef5d2..f2ef5d2 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/tests/minimal_init.lua +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/tests/minimal_init.lua diff --git a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/vim.yml b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/vim.yml index 3b7c394..3b7c394 100644 --- a/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.6/vim.yml +++ b/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-surround-v2.1.7/vim.yml |