Skip to content
Snippets Groups Projects
Commit 1ce11a32 authored by rswindell's avatar rswindell
Browse files

Use parens more aggresively. Fix bug with Ctrl-Z introduced in rev 1.46

parent 128576c5
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* * * *
* Copyright 2014 Rob Swindell - http://www.synchro.net/copyright.html * * Copyright 2015 Rob Swindell - http://www.synchro.net/copyright.html *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License * * modify it under the terms of the GNU General Public License *
...@@ -107,7 +107,7 @@ char sbbs_t::handle_ctrlkey(char ch, long mode) ...@@ -107,7 +107,7 @@ char sbbs_t::handle_ctrlkey(char ch, long mode)
backspace(); backspace();
return(0); return(0);
} }
if(ch==CTRL_Z && !(mode&K_MSG|K_GETSTR) if(ch==CTRL_Z && !(mode&(K_MSG|K_GETSTR))
&& action!=NODE_PCHT) { /* Ctrl-Z toggle raw input mode */ && action!=NODE_PCHT) { /* Ctrl-Z toggle raw input mode */
if(hotkey_inside>1) /* only allow so much recursion */ if(hotkey_inside>1) /* only allow so much recursion */
return(0); return(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment