summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-05 07:02:33 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-05 07:02:33 +0300
commitaa50c1e0028c6cb08524dcdfb7188906c817e46f (patch)
tree1f5d91bef261612680d589e0481dad99ef189619 /src/ui/window.c
parentde53b815e09a1004b8fb70706199fb840f53514a (diff)
Option to force break very long lines
Even preformatted lines may need to be wrapped so the content remains visible, since there is no horizontal scrolling. However, this is off by default so ASCII art isn't broken in narrow windows.
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index b7b4a8fd..66f1c513 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -141,6 +141,8 @@ static const iMenuItem viewMenuItems[] = {
141 { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, 141 { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" },
142 { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, 142 { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" },
143 { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, 143 { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" },
144 { "---", 0, 0, NULL },
145 { "Wrap Preformatted", 0, 0, "forcewrap.toggle" }
144}; 146};
145 147
146static const iMenuItem helpMenuItems[] = { 148static const iMenuItem helpMenuItems[] = {