Combine internal packages into one internal package
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user