Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Fixes #162
Browse files Browse the repository at this point in the history
* Update tview
* Activate Overflow indicates for cli and chatview
  • Loading branch information
Bios-Marcel committed Oct 10, 2019
1 parent 97b9068 commit f2216ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/Bios-Marcel/discordgo v0.20.4-0.20191007163810-41c4e4a91fd6
github.com/Bios-Marcel/goclipimg v0.0.0-20190417192721-b58a8831f27d
github.com/Bios-Marcel/shortnotforlong v1.0.0
github.com/Bios-Marcel/tview v0.0.0-20191008165233-c1d70afae712
github.com/Bios-Marcel/tview v0.0.0-20191010190327-42c5245b3d25
github.com/alecthomas/chroma v0.6.6
github.com/atotto/clipboard v0.1.2
github.com/gdamore/tcell v1.3.0
Expand Down
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ github.com/Bios-Marcel/tview v0.0.0-20191005105220-888684dabd6b h1:Z4pYp0FKemDpt
github.com/Bios-Marcel/tview v0.0.0-20191005105220-888684dabd6b/go.mod h1:AtXfMotMUyN+IQ7JwQyvrWr9dQN+TNRlq+slKB0fmQc=
github.com/Bios-Marcel/tview v0.0.0-20191008165233-c1d70afae712 h1:woFPJ1+2P7cPwDO7ES0WqEZ5Gr7uomx2mX+waHZDFlg=
github.com/Bios-Marcel/tview v0.0.0-20191008165233-c1d70afae712/go.mod h1:AtXfMotMUyN+IQ7JwQyvrWr9dQN+TNRlq+slKB0fmQc=
github.com/Bios-Marcel/tview v0.0.0-20191010184840-e957ee729af5 h1:fpOcmkGt7VZAZM+vLHxEsyoHyMiPHus5gDrJluQdhH8=
github.com/Bios-Marcel/tview v0.0.0-20191010184840-e957ee729af5/go.mod h1:AtXfMotMUyN+IQ7JwQyvrWr9dQN+TNRlq+slKB0fmQc=
github.com/Bios-Marcel/tview v0.0.0-20191010185340-4087ce6a56dd h1:1lP9nen8TalO7/wh4nGsYMK0QtaKRzoJ5I/cfGjDMZM=
github.com/Bios-Marcel/tview v0.0.0-20191010185340-4087ce6a56dd/go.mod h1:AtXfMotMUyN+IQ7JwQyvrWr9dQN+TNRlq+slKB0fmQc=
github.com/Bios-Marcel/tview v0.0.0-20191010190327-42c5245b3d25 h1:6qaZmnHVaTfn3KLpbs1EZxi8ZWPnvyKSVN6m1azdpVg=
github.com/Bios-Marcel/tview v0.0.0-20191010190327-42c5245b3d25/go.mod h1:AtXfMotMUyN+IQ7JwQyvrWr9dQN+TNRlq+slKB0fmQc=
github.com/DATA-DOG/go-sqlmock v1.3.3 h1:CWUqKXe0s8A2z6qCgkP4Kru7wC11YoAnoupUKFDnH08=
github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/GeertJohan/go.incremental v1.0.0/go.mod h1:6fAjUhbVuX1KcMD3c8TEgVUqmo4seqhv0i0kdATSkM0=
Expand Down
1 change: 1 addition & 0 deletions ui/chatview.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ func NewChatView(state *discordgo.State, ownUserID string) *ChatView {
SetDynamicColors(true).
SetRegions(true).
SetWordWrap(true).
SetIndicateOverflow(true).
SetBorder(true).
SetTitleColor(config.GetTheme().InverseTextColor)

Expand Down
3 changes: 2 additions & 1 deletion ui/commandview.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ func NewCommandView(onExecuteCommand func(command string)) *CommandView {
commandInput := NewEditor()
commandInput.internalTextView.
SetWrap(false).
SetWordWrap(false)
SetWordWrap(false).
SetIndicateOverflow(true)

cmdView := &CommandView{
commandOutput: commandOutput,
Expand Down

0 comments on commit f2216ea

Please sign in to comment.