Skip to content

Commit b963c6e

Browse files
committed
A bit of cleanup in ImGuiColorTextEdit
1 parent 1cb1e23 commit b963c6e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/lib/OGF/skin_imgui/widgets/text_editor.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ namespace {
5858
// If <tab> was pushed and if there are some completions
5959
// and if the mouse is on the same line as the cursor,
6060
// display the completions in the tooltip.
61-
::TextEditor::Coordinates mouse_coord =
61+
::TextEditor::CursorPosition mouse_coord =
6262
target->impl()->GetMousePosition();
6363

64-
::TextEditor::Coordinates cursor_coord =
64+
::TextEditor::CursorPosition cursor_coord =
6565
target->impl()->GetCurrentCursorPosition();
6666

6767
std::vector<std::string>& matches = target->completions();
@@ -114,7 +114,7 @@ namespace {
114114
return;
115115
}
116116

117-
::TextEditor::Coordinates coords =
117+
::TextEditor::CursorPosition coords =
118118
target->impl()->GetCurrentCursorPosition();
119119
std::string L = target->impl()->GetLine(coords.line);
120120

@@ -226,7 +226,7 @@ namespace OGF {
226226
void TextEditor::clear() {
227227
impl_->SetText("\n");
228228
impl_->SetCursorPosition(
229-
::TextEditor::Coordinates(0,0)
229+
::TextEditor::CursorPosition(0,0)
230230
);
231231
}
232232

@@ -261,7 +261,7 @@ namespace OGF {
261261
impl_->InsertText("\n");
262262
}
263263
impl_->SetCursorPosition(
264-
::TextEditor::Coordinates(0,0)
264+
::TextEditor::CursorPosition(0,0)
265265
);
266266
}
267267

@@ -286,7 +286,7 @@ namespace OGF {
286286
);
287287
// Move cursor position to first error so that users sees it !
288288
if(first_one) {
289-
impl_->SetCursorPosition(::TextEditor::Coordinates(int(line-1),0));
289+
impl_->SetCursorPosition(::TextEditor::CursorPosition(int(line-1),0));
290290
}
291291
}
292292

0 commit comments

Comments
 (0)