From: Benno Schulenberg Date: Mon, 23 Jun 2014 20:30:23 +0000 (+0000) Subject: Giving audible feedback when flipping the new buffer to off X-Git-Tag: v2.3.5~42 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=45417c76f3b5f1f064b0ef0fbe16a85ab8086605;p=nano.git Giving audible feedback when flipping the new buffer to off is not allowed in view mode. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5018 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index a7c6acc5..4a888534 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ the description of 'gototext' (not being about the file browser). * doc/syntax/nanorc.nanorc: Show Ins and Del as valid rebindable keys. * src/help.c (do_help): Normalize the indentation. + * src/files.c (do_insertfile): Give audible feedback when flipping + the new buffer to off is not allowed in view mode. 2014-06-22 Benno Schulenberg * src/browser.c (parse_browser_input), src/help.c (parse_help_input): diff --git a/src/files.c b/src/files.c index da2cc469..9867c40b 100644 --- a/src/files.c +++ b/src/files.c @@ -1080,6 +1080,8 @@ void do_insertfile( /* Don't allow toggling if we're in view mode. */ if (!ISSET(VIEW_MODE)) TOGGLE(MULTIBUFFER); + else + beep(); continue; } #endif