use fieldWidth instead of i.fieldWidth

using i.fieldWidth doesn't work when the fieldWidth is set to 0 or the
inputField is used in FlexBox.
pull/835/head
aditya-K2 2 years ago
parent 1ada6e5074
commit 53a6ae3375

@ -554,7 +554,7 @@ func (i *InputField) Draw(screen tcell.Screen) {
if i.autocompleteList != nil {
// How much space do we need?
lheight := i.autocompleteList.GetItemCount()
lwidth := i.fieldWidth
lwidth := fieldWidth
if !i.autocompleteMatchFieldWidth {
lwidth = 0
for index := 0; index < lheight; index++ {

Loading…
Cancel
Save