Skip to content

Commit

Permalink
(mini.ai) Fix example for whole buffer textobject.
Browse files Browse the repository at this point in the history
Details:
- Resolves #169.
  • Loading branch information
echasnovski committed Dec 2, 2022
1 parent d00abe8 commit 6402c79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/mini-ai.txt
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ Examples:
g = function()
local from = { line = 1, col = 1 }
local to = {
line = vim.fn.line('$'), col = vim.fn.getline('$'):len()
line = vim.fn.line('$'),
col = math.max(vim.fn.getline('$'):len(), 1)
}
return { from = from, to = to }
end
Expand Down
3 changes: 2 additions & 1 deletion lua/mini/ai.lua
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ end
--- g = function()
--- local from = { line = 1, col = 1 }
--- local to = {
--- line = vim.fn.line('$'), col = vim.fn.getline('$'):len()
--- line = vim.fn.line('$'),
--- col = math.max(vim.fn.getline('$'):len(), 1)
--- }
--- return { from = from, to = to }
--- end
Expand Down

0 comments on commit 6402c79

Please sign in to comment.