nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH 1/2] src/global.c: Enable mode toggle shortcuts in v


From: Liu Hao
Subject: [Nano-devel] [PATCH 1/2] src/global.c: Enable mode toggle shortcuts in view mode.
Date: Tue, 11 Sep 2018 14:57:28 +0800 (CST)

This enables toggle of whitespace display, smart home, softwrap,
etc. in view mode.

Signed-off-by: Liu Hao <address@hidden>
---
  src/global.c | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/src/global.c b/src/global.c
index 88bb8dd3..bcac3f0b 100644
--- a/src/global.c
+++ b/src/global.c
@@ -1069,6 +1069,12 @@ void shortcut_init(void)
                N_("Next Lint Msg"), WITHORSANS(nextlint_gist), TOGETHER, VIEW);
  #endif
  +#ifndef NANO_TINY
+       /* Enable toggle functions to work in view mode. */
+       add_to_funcs(do_toggle_void, MMAIN,
+               N_("Toggle"), "", TOGETHER, VIEW);
+#endif
+
        /* Link key combos to functions in certain menus. */
        add_to_sclist(MMOST, "^M", 0, do_enter, 0);
        add_to_sclist(MMOST, "Enter", KEY_ENTER, do_enter, 0);
-- 
2.17.1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]