Skip to content

Commit d3cb0ca

Browse files
joaopsazevedosetton
authored andcommitted
V725-006 Update formatted text last character offset
Companion patch for a change in partial gnatpp that no longer adds a line break to the end of the formatted text.
1 parent 6b67d90 commit d3cb0ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/ada/lsp-ada_documents.adb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,7 @@ package body LSP.Ada_Documents is
11711171
Edit_Span : constant LSP.Messages.Span :=
11721172
Self.To_LSP_Range (Output_Selection_Range);
11731173
Output_Str : constant String :=
1174-
Char_Vectors.Elems (Output)
1175-
(1 .. Char_Vectors.Last_Index (Output) - 1);
1174+
Char_Vectors.Elems (Output) (1 .. Char_Vectors.Last_Index (Output));
11761175
Edit_Text : constant VSS.Strings.Virtual_String :=
11771176
VSS.Strings.Conversions.To_Virtual_String (Output_Str);
11781177

0 commit comments

Comments
 (0)