forked from qt-creator/qt-creator
Lua: Fix compilation error
Amends ab59396862
Change-Id: I5853604d2ffceb8daca6ee4d2cb1857212e11cfc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -552,7 +552,7 @@ void setupTextEditorModule()
|
|||||||
auto one_based = [](int zero_based) { return zero_based + 1; };
|
auto one_based = [](int zero_based) { return zero_based + 1; };
|
||||||
Text::Position start_pos = {one_based(start_line), start_character};
|
Text::Position start_pos = {one_based(start_line), start_character};
|
||||||
Text::Position end_pos = {one_based(end_line), end_character};
|
Text::Position end_pos = {one_based(end_line), end_character};
|
||||||
return {Text::Range(start_pos, end_pos), start_pos, text};
|
return {Text::Range{start_pos, end_pos}, start_pos, text};
|
||||||
});
|
});
|
||||||
|
|
||||||
result.new_usertype<TextEditor::TextDocument>(
|
result.new_usertype<TextEditor::TextDocument>(
|
||||||
|
Reference in New Issue
Block a user