get rid of getJsonPath, use flat_settings query flag instead (#66)

This commit is contained in:
T. von Dein
2026-07-03 10:25:57 +02:00
parent 1fc2004474
commit c9fb572935
4 changed files with 5 additions and 63 deletions

View File

@@ -157,7 +157,7 @@ func (data *Table) PrintTSV() error {
for idx, entry := range entries {
length := visibleLen(entry)
if length+currentWidth > data.maxwidth {
if length+currentWidth > data.maxwidth && data.maxwidth-currentWidth > 1 {
// text is too wide to be put into one line, wrap it
wrapper := wordwrap.Wrapper(data.maxwidth-currentWidth, false)
wrapped := wrapper(entry)