aboutsummaryrefslogtreecommitdiff
path: root/ui/room-view.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-03-26 22:09:10 +0200
committerTulir Asokan <tulir@maunium.net>2019-03-26 22:09:10 +0200
commitcc63a197c60bb77c2d020b525bae13d701ccf5a4 (patch)
treeb9bcee552a22bdfc546c71ad328cdebe96950036 /ui/room-view.go
parentc3c7cc9b3503417afe11a8067095534a751dfd04 (diff)
Change more things
Diffstat (limited to 'ui/room-view.go')
-rw-r--r--ui/room-view.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/room-view.go b/ui/room-view.go
index 78ace59..7c561cc 100644
--- a/ui/room-view.go
+++ b/ui/room-view.go
@@ -210,8 +210,6 @@ func (view *RoomView) Draw(screen mauview.Screen) {
view.prevScreen = screen
}
- debug.Print(screen)
-
view.input.PrepareDraw(width)
inputHeight := view.input.GetTextHeight()
if inputHeight > MaxInputHeight {
@@ -255,6 +253,7 @@ func (view *RoomView) OnKeyEvent(event mauview.KeyEvent) bool {
}
func (view *RoomView) OnPasteEvent(event mauview.PasteEvent) bool {
+ debug.Print("PASTE EVENT", event)
return view.input.OnPasteEvent(event)
}
@@ -322,6 +321,7 @@ func (view *RoomView) autocompleteRoom(existingText string) (completions []compl
}
func (view *RoomView) InputTabComplete(text string, cursorOffset int) {
+ debug.Print("Tab completing", cursorOffset, text)
str := runewidth.Truncate(text, cursorOffset, "")
word := findWordToTabComplete(str)
startIndex := len(str) - len(word)