mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-21 15:44:17 +02:00
Attempt to cleanup the Msg grab bag formatting
This commit is contained in:
parent
5bdf7649b0
commit
0897472ca2
2 changed files with 4 additions and 10 deletions
|
|
@ -486,7 +486,6 @@ func stashDocument(cc *charm.Client, md markdown) tea.Cmd {
|
|||
// We really just need to know the ID so we can operate on this newly
|
||||
// stashed markdown.
|
||||
md.ID = newMd.ID
|
||||
|
||||
return stashSuccessMsg(md)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
13
ui/ui.go
13
ui/ui.go
|
|
@ -54,9 +54,6 @@ type errMsg error
|
|||
type newCharmClientMsg *charm.Client
|
||||
type sshAuthErrMsg struct{}
|
||||
type keygenFailedMsg struct{ err error }
|
||||
|
||||
func (k keygenFailedMsg) Error() string { return k.err.Error() }
|
||||
|
||||
type keygenSuccessMsg struct{}
|
||||
type initLocalFileSearchMsg struct {
|
||||
cwd string
|
||||
|
|
@ -66,15 +63,13 @@ type foundLocalFileMsg gitcha.SearchResult
|
|||
type localFileSearchFinished struct{}
|
||||
type gotStashMsg []*charm.Markdown
|
||||
type stashLoadErrMsg struct{ err error }
|
||||
|
||||
func (s stashLoadErrMsg) Error() string { return s.err.Error() }
|
||||
|
||||
type gotNewsMsg []*charm.Markdown
|
||||
type statusMessageTimeoutMsg applicationContext
|
||||
type newsLoadErrMsg struct{ err error }
|
||||
|
||||
func (s newsLoadErrMsg) Error() string { return s.err.Error() }
|
||||
|
||||
type statusMessageTimeoutMsg applicationContext
|
||||
func (k keygenFailedMsg) Error() string { return k.err.Error() }
|
||||
func (s stashLoadErrMsg) Error() string { return s.err.Error() }
|
||||
func (s newsLoadErrMsg) Error() string { return s.err.Error() }
|
||||
|
||||
// MODEL
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue