Style fixes. - sam - An updated version of the sam text editor.
(HTM) git clone git://vernunftzentrum.de/sam.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 5cd42f1f67572906665966ba07ce099ae358260e
(DIR) parent bdb1053dbc74b044921afdb077b244e24ccdf77b
(HTM) Author: Rob King <jking@deadpixi.com>
Date: Wed, 21 Sep 2016 20:22:15 -0500
Style fixes.
Diffstat:
samterm/main.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/samterm/main.c b/samterm/main.c
@@ -853,9 +853,10 @@ cmdsend(Flayer *l, long a, Text *t, const char *arg)
{
flushtyping(0);
cmdjump(l, a, t, NULL);
- for (const char *c = arg; *c != 0; c++){
+ for (const char *c = arg; *c; c++){
pushkbd(*c);
type(&cmd.l[cmd.front]);
+ flushtyping(0);
}
pushkbd('\n');
type(&cmd.l[cmd.front]);
@@ -902,7 +903,7 @@ CommandEntry commands[Cmax] ={
[Ceol] = {cmdeol, false, false},
[Cbol] = {cmdbol, false, false},
[Ctab] = {cmdtab, false, false},
- [Csend] = {cmdsend, true, false}
+ [Csend] = {cmdsend, false, false}
};