Bump bubbles in examples and remove NewModel function in pager example
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Christian Rocha · committed by Christian Rocha · parent 6d919a9 · Browse files · 4 files·+9 added−7 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+9 added−7 removed
- other:+9 added−7 removed
Provenance
- Commit
a784aa3- Tree
3eb3a55- Author
Christian Rocha <christian@rocha.is>- Committer
Christian Rocha <christian@rocha.is>- Parent
6d919a9
4 files changed+9 added−7 removed
modified:examples/pager/main.go+1 added-1 removed
104 unmodified lines105 // to wait until we've received the window dimensions before we106 // can initialize the viewport. The initial dimensions come in107 // quickly, though asynchronously, which is why we wait for them108 // here.109- m.viewport = viewport.NewModel(msg.Width, msg.Height-verticalMargins)109+ m.viewport = viewport.Model{Width: msg.Width, Height: msg.Height - verticalMargins}110 m.viewport.YPosition = headerHeight111 m.viewport.HighPerformanceRendering = useHighPerformanceRenderer112 m.viewport.SetContent(m.content)113 m.ready = true52 unmodified linesmodified:examples/go.mod+2 added
10 unmodified lines11 github.com/mattn/go-runewidth v0.0.912 github.com/muesli/termenv v0.7.013 golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1 // indirect14 )15+16+replace github.com/charmbracelet/bubbles => ../../bubblesmodified:go.mod+2 added-2 removed
3 unmodified lines4 5 require (6 github.com/muesli/termenv v0.5.3-0.20200625163851-04b5c30e4c047 github.com/pkg/term v0.0.0-20200520122047-c3ffed290a038- golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf99- golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4 // indirect8+ golang.org/x/crypto v0.0.0-20200709230013-948cd5f358999+ golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae // indirect10 )modified:go.sum+4 added-4 removed
7 unmodified lines8 github.com/muesli/termenv v0.5.3-0.20200625163851-04b5c30e4c04/go.mod h1:O1/I6sw+6KcrgAmcs6uiUVr7Lui+DNVbHTzt9Lm/PlI=9 github.com/pkg/term v0.0.0-20200520122047-c3ffed290a03 h1:pd4YKIqCB0U7O2I4gWHgEUA2mCEOENmco0l/bM957bU=10 github.com/pkg/term v0.0.0-20200520122047-c3ffed290a03/go.mod h1:Z9+Ul5bCbBKnbCvdOWbLqTHhJiYV414CURZJba6L8qA=11 golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=12-golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 h1:vEg9joUBmeBcK9iSJftGNf3coIG4HqZElCPehJsfAYM=13-golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=12+golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg=13+golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=14 golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=15 golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=16 golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=17 golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=18-golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4 h1:5/PjkGUjvEU5Gl6BxmvKRPpqo2uNMv4rcHBMwzk/st8=19-golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=18+golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae h1:Ih9Yo4hSPImZOpfGuA4bR/ORKTAbhZo2AbWNRCnevdo=19+golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=20 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=