Repos / mcross / 0461bc5a1e
commit 0461bc5a1e91d7bfd5a31a8aeb744942f15497eb
Author: Bùi Thành Nhân <hi@imnhan.com>
Date:   Fri May 29 20:27:01 2020 +0700

    wrap words instead of char

diff --git a/pyproject.toml b/pyproject.toml
index 9ab432d..0412c9c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "mcross"
-version = "0.5.8"
+version = "0.5.9"
 description = "Do you remember www?"
 authors = ["nhanb <hi@imnhan.com>"]
 license = "MIT"
diff --git a/src/mcross/gui/view.py b/src/mcross/gui/view.py
index 33adee0..d4a8a5a 100644
--- a/src/mcross/gui/view.py
+++ b/src/mcross/gui/view.py
@@ -125,7 +125,7 @@ def on_ctrl_l(ev):
         go_btn.pack(side="left", pady=3)
 
         # Main viewport implemented as a Text widget.
-        text = ReadOnlyText(row2)
+        text = ReadOnlyText(row2, wrap="word")
         self.text = text
         self.render_page()
         text_font = pick_font(