Skip to content

Commit

Permalink
feat(send.lua): add debug prints for lines and row in get_code_to_sen…
Browse files Browse the repository at this point in the history
…d function to aid in debugging and understanding the function's behavior
  • Loading branch information
PMassicotte committed Mar 4, 2025
1 parent 04622c7 commit 493de62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/r/send.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ local function get_code_to_send(txt, row)
row = end_row
end

vim.print("lines: ", lines)
vim.print("row: ", row)

return lines, row
end

Expand Down Expand Up @@ -517,6 +520,7 @@ end
M.line = function(m)
local lnum = vim.api.nvim_win_get_cursor(0)[1]
local line = vim.fn.getline(lnum)

local lang = get_lang()
if lang == "chunk_child" then
if type(m) == "boolean" and m then
Expand Down

0 comments on commit 493de62

Please sign in to comment.