TUI mode does not follow "-w"
Author: swj1442291549Created Feb 4, 2026Updated Aug 24, 2026
Describe the bug
When open a file via glow -t README.md, it does not respect the setting of word wrap. This is even true if run with glow -w 60 -t README.md. It only takes effect after I excape from edit mode.
Setup Please complete the following information along with version numbers, if applicable.
- macOS Tahoe 26.2
- glow version 2.1.1
To Reproduce Steps to reproduce the behavior:
glow -t README.mdorglow -w 60 -t README.md
Expected behavior glow should follow the word wrap setting in TUI mode. Right now it does not do that if a filename is given in a CLI.
Source: charmbracelet/glow