Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lua/template-string/langs/csharp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ end
function M.before_quotes(node, text)
local node_row, node_col = node:range()
local cursor_row, cursor_col = unpack(vim.api.nvim_win_get_cursor(0))
local first_quote_col = text:find('"') + node_col
local quote_idx = text:find('"')

if not quote_idx then
return false
end

local first_quote_col = quote_idx + node_col

cursor_row = cursor_row - 1

Expand Down