Browse Source

add comment around removing the workaround when the bug is fixed in termbox-go

Alan Shreve 12 years ago
parent
commit
0468760901
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/ngrok/client/views/term/http.go

+ 3 - 0
src/ngrok/client/views/term/http.go

@@ -93,6 +93,9 @@ func truncatePath(path string) string {
 	// By this point, len(path) should be < pathMaxLength if we're dealing with single-byte runes.
 	// Otherwise, we have a multi-byte string and need to calculate the size of each rune and
 	// truncate manually.
+	//
+	// This is a workaround for a bug in termbox-go. Remove it when this issue is fixed:
+	// https://github.com/nsf/termbox-go/pull/21
 	if len(path) > pathMaxLength {
 		out := make([]byte, pathMaxLength, pathMaxLength)
 		length := 0