jroimartin / gocui

Minimalist Go package aimed at creating Console User Interfaces.
BSD 3-Clause "New" or "Revised" License
9.92k stars 608 forks source link

The function Line() and line highlighting should take the Wrap flag into consideration. #50

Closed pengux closed 8 years ago

pengux commented 8 years ago

Currently, when the Wrap flag is set to true for a view, the Line() method doesn't return the whole line, but only the part that fit in one row. The same problem exists for line highlighting as it only highlight the part on the same row instead of the whole wrapped line.

jroimartin commented 8 years ago

Highlighting should be fixed with 0707386452711db7b0d58fff7e13dd2f28e1db3e. Regarding the Line() method, it works fine here. Could you check, please?