Fix some formatting and enable pretty panics in non-debug mode. Closes #265
This commit is contained in:
@ -36,7 +36,7 @@ type FuzzySearchModal struct {
|
||||
|
||||
container *mauview.Box
|
||||
|
||||
search *mauview.InputArea
|
||||
search *mauview.InputArea
|
||||
results *mauview.TextView
|
||||
|
||||
matches fuzzy.Ranks
|
||||
|
@ -42,10 +42,10 @@ func NewListEntity(ordered bool, start int, children []Entity) *ListEntity {
|
||||
entity := &ListEntity{
|
||||
ContainerEntity: &ContainerEntity{
|
||||
BaseEntity: &BaseEntity{
|
||||
Tag: "ul",
|
||||
Block: true,
|
||||
Tag: "ul",
|
||||
Block: true,
|
||||
},
|
||||
Indent: 2,
|
||||
Indent: 2,
|
||||
Children: children,
|
||||
},
|
||||
Ordered: ordered,
|
||||
@ -66,8 +66,8 @@ func (le *ListEntity) AdjustStyle(fn AdjustStyleFunc) Entity {
|
||||
func (le *ListEntity) Clone() Entity {
|
||||
return &ListEntity{
|
||||
ContainerEntity: le.ContainerEntity.Clone().(*ContainerEntity),
|
||||
Ordered: le.Ordered,
|
||||
Start: le.Start,
|
||||
Ordered: le.Ordered,
|
||||
Start: le.Start,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -34,12 +34,12 @@ import (
|
||||
|
||||
var tagOrder = map[string]int{
|
||||
"net.maunium.gomuks.fake.invite": 4,
|
||||
"m.favourite": 3,
|
||||
"m.favourite": 3,
|
||||
"net.maunium.gomuks.fake.direct": 2,
|
||||
"": 1,
|
||||
"m.lowpriority": -1,
|
||||
"m.server_notice": -2,
|
||||
"net.maunium.gomuks.fake.leave": -3,
|
||||
"": 1,
|
||||
"m.lowpriority": -1,
|
||||
"m.server_notice": -2,
|
||||
"net.maunium.gomuks.fake.leave": -3,
|
||||
}
|
||||
|
||||
// TagNameList is a list of Matrix tag names where default names are sorted in a hardcoded way.
|
||||
|
Reference in New Issue
Block a user