Skip to content

Commit

Permalink
Merge pull request #14 from capocasa/main
Browse files Browse the repository at this point in the history
fix multiline change callback
  • Loading branch information
neroist authored Jul 11, 2024
2 parents 3098ae0 + 55cd559 commit d22ac6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uing.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2188,6 +2188,7 @@ proc newMultilineEntry*(onchanged: proc(sender: MultilineEntry) = nil): Multilin

newFinal result
result.impl = rawui.newMultilineEntry()
result.onchanged = onchanged
multilineEntryOnChanged(result.impl, wrapmeOnchanged, cast[pointer](result))

proc newNonWrappingMultilineEntry*(onchanged: proc(sender: MultilineEntry) = nil): MultilineEntry =
Expand All @@ -2198,6 +2199,7 @@ proc newNonWrappingMultilineEntry*(onchanged: proc(sender: MultilineEntry) = nil

newFinal result
result.impl = rawui.newNonWrappingMultilineEntry()
result.onchanged = onchanged
multilineEntryOnChanged(result.impl, wrapmeOnchanged, cast[pointer](result))

# ---------------------- MenuItem ---------------------------------------
Expand Down

0 comments on commit d22ac6d

Please sign in to comment.