Fix panic on cmdsend. - sam - An updated version of the sam text editor. | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 7d148a12c0bfd46cc11f660aca9113685d187a7d | |
parent a52daf1643c6759b60847b7466e0d57ddf833cd6 | |
Author: Rob King <[email protected]> | |
Date: Tue, 20 Sep 2016 16:01:37 -0500 | |
Fix panic on cmdsend. | |
Diffstat: | |
samterm/main.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/samterm/main.c b/samterm/main.c | |
@@ -838,6 +838,7 @@ cmdsend(Flayer *l, long a, Text *t, const char *arg) | |
} | |
pushkbd('\n'); | |
type(&cmd.l[cmd.front]); | |
+ flushtyping(0); | |
cmdjump(l, a, t, NULL); | |
return a; | |
@@ -879,7 +880,7 @@ CommandEntry commands[Cmax] ={ | |
[Ceol] = {cmdeol, false, false}, | |
[Cbol] = {cmdbol, false, false}, | |
[Ctab] = {cmdtab, false, false}, | |
- [Csend] = {cmdsend, false, false} | |
+ [Csend] = {cmdsend, true, false} | |
}; | |