Re-implement the 'mode' command

This commit is contained in:
Michael Stapelberg
2011-06-10 02:38:07 +02:00
parent c6352ded4e
commit 39b1c1bf75
4 changed files with 11 additions and 3 deletions

View File

@ -352,6 +352,7 @@ operation:
| mark
| resize
| nop
| mode
;
exec:
@ -784,3 +785,10 @@ direction:
| TOK_LEFT { $$ = TOK_LEFT; }
| TOK_RIGHT { $$ = TOK_RIGHT; }
;
mode:
TOK_MODE STR
{
switch_mode($2);
}
;