Skip to content

Commit

Permalink
Merge pull request #690 from gucio321/fix-codeeditor-demo
Browse files Browse the repository at this point in the history
examples: fix crash in codeeditor demo
gucio321 authored Aug 25, 2023
2 parents b8dd405 + 36847a0 commit 3e09263
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/codeeditor/codeeditor.go
Original file line number Diff line number Diff line change
@@ -47,6 +47,8 @@ func loop() {
}

func main() {
wnd := g.NewMasterWindow("Code Editor", 800, 600, 0)

errMarkers = imgui.NewErrorMarkers()

editor = g.CodeEditor().
@@ -56,6 +58,5 @@ func main() {
LanguageDefinition(giu.LanguageDefinitionSQL).
Border(true)

wnd := g.NewMasterWindow("Code Editor", 800, 600, 0)
wnd.Run(loop)
}

0 comments on commit 3e09263

Please sign in to comment.