diff options
author | mongo <mongo@iomega> | 2016-09-09 19:31:13 -0300 |
---|---|---|
committer | mongo <mongo@iomega> | 2016-09-09 19:31:13 -0300 |
commit | 05af81409ee2f2d9afd751f8cd4418adab51b899 (patch) | |
tree | 2c085d7de219679f2dbecbbd655f318622c37f9e /src/gram.y | |
parent | 34077a5a71603192454a3b02f1603a6a3bbf518c (diff) |
Added undo for fill command
Diffstat (limited to 'src/gram.y')
-rw-r--r-- | src/gram.y | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ %{ -#include <curses.h> +#include <ncurses.h> #include <stdlib.h> #include "sc.h" #include "cmds.h" @@ -417,6 +417,7 @@ command: } | S_FILL var_or_range num num { fill($2.left.vp, $2.right.vp, $3, $4); } + | S_FILL num num { sc_error("Not enough parameters for fill command"); } | S_SORT range STRING { sortrange($2.left.vp, $2.right.vp, $3); //scxfree($3); |