More work
This commit is contained in:
@@ -167,7 +167,10 @@ func (w *JsonContent) Draw(screen tcell.Screen) {
|
||||
|
||||
if w.editable {
|
||||
var key, val string
|
||||
|
||||
pts := strings.Split(txt, ":")
|
||||
if len(pts) == 2 {
|
||||
key, val = pts[0], pts[1]
|
||||
}
|
||||
wh.DrawText(w.x, y, key, st.Dim(dim).Bold(!dim), screen)
|
||||
st = st.Reverse(true)
|
||||
wh.DrawText(w.x, y, val, st.Dim(dim).Bold(!dim), screen)
|
||||
|
||||
Reference in New Issue
Block a user