Combine internal packages into one internal package

This commit is contained in:
2024-09-10 18:29:04 -04:00
parent 6f2a31cd60
commit 039e0da646
4 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ import "git.tebibyte.media/tomo/tomo"
import "git.tebibyte.media/tomo/tomo/text"
import "git.tebibyte.media/tomo/tomo/input"
import "git.tebibyte.media/tomo/tomo/event"
import "git.tebibyte.media/tomo/objects/internal/history"
import "git.tebibyte.media/tomo/objects/internal"
const textInputHistoryMaximum = 64
const textInputHistoryMaxAge = time.Second / 4
@@ -22,7 +22,7 @@ type TextInput struct {
box tomo.TextBox
text []rune
multiline bool
history *history.History[textHistoryItem]
history *internal.History[textHistoryItem]
on struct {
dotChange event.FuncBroadcaster
valueChange event.FuncBroadcaster
@@ -35,7 +35,7 @@ func newTextInput (text string, multiline bool) *TextInput {
box: tomo.NewTextBox(),
text: []rune(text),
multiline: multiline,
history: history.NewHistory[textHistoryItem] (
history: internal.NewHistory[textHistoryItem] (
textHistoryItem { text: text },
textInputHistoryMaximum),
}