diff --git a/lib/next_ls/document_symbol.ex b/lib/next_ls/document_symbol.ex index 9d3f7e2b..d78e66c9 100644 --- a/lib/next_ls/document_symbol.ex +++ b/lib/next_ls/document_symbol.ex @@ -123,8 +123,8 @@ defmodule NextLS.DocumentSymbol do character: meta[:column] - 1 }, end: %Position{ - line: meta[:end_of_expression][:line] - 1, - character: meta[:end_of_expression][:column] - 1 + line: (meta[:end_of_expression][:line] || meta[:line]) - 1, + character: (meta[:end_of_expression][:column] || meta[:column]) - 1 } }, selection_range: %Range{