diff options
| author | theprimeagain <the.primeagen@gmail.com> | 2026-02-21 13:22:20 -0700 |
|---|---|---|
| committer | theprimeagain <the.primeagen@gmail.com> | 2026-02-21 13:22:20 -0700 |
| commit | 6612d1e8b92828b691d6aac1f5ab3c5f4ed20a5c (patch) | |
| tree | cad3fe4b1e46a768752282c54934f58ee441a59e /lua | |
| parent | 418347707d069e5da5cb08c23b47d3d247893ecd (diff) | |
| download | a4-6612d1e8b92828b691d6aac1f5ab3c5f4ed20a5c.tar.xz a4-6612d1e8b92828b691d6aac1f5ab3c5f4ed20a5c.zip | |
fix #122
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/99/ops/over-range.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/99/ops/over-range.lua b/lua/99/ops/over-range.lua index fe82cf2..3931d22 100644 --- a/lua/99/ops/over-range.lua +++ b/lua/99/ops/over-range.lua @@ -75,6 +75,12 @@ local function over_range(context, opts) return end + if vim.trim(response) == "" then + print("response was empty, visual replacement aborted") + logger:debug("response was empty, visual replacement aborted") + return + end + local new_range = Range.from_marks(top_mark, bottom_mark) local lines = vim.split(response, "\n") |
