diff options
author | mongo <andmarti@gmail.com> | 2017-04-21 14:44:18 -0300 |
---|---|---|
committer | mongo <andmarti@gmail.com> | 2017-04-21 14:44:18 -0300 |
commit | 74eaabb6624c295c6227575cad1741b99d349a11 (patch) | |
tree | 6ea540d282fc53ece5715674c77abca0b1c74374 /src/gram.y | |
parent | fa452e9e8e3903f57a9c841f47e61fdd6dede222 (diff) |
Clipboard support
Diffstat (limited to 'src/gram.y')
-rw-r--r-- | src/gram.y | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -22,6 +22,7 @@ #include "utils/dictionary.h" #include "trigger.h" #include "shift.h" +#include "clipboard.h" void yyerror(char *err); // error routine for yacc (gram.y) int yylex(); @@ -101,6 +102,7 @@ token S_YANKCOL %token S_SORT %token S_FILTERON %token S_GOTO +%token S_CCOPY %token S_LOCK %token S_UNLOCK %token S_DEFINE @@ -547,6 +549,7 @@ command: //scxfree($3); shall not free here // | S_GOTO WORD { /* don't repeat last goto on "unintelligible word" */ ; } + | S_CCOPY range { copy_to_clipboard($2.left.vp->row, $2.left.vp->col, $2.right.vp->row, $2.right.vp->col); } | S_LOCK var_or_range { lock_cells($2.left.vp, $2.right.vp); } | S_UNLOCK var_or_range { unlock_cells($2.left.vp, $2.right.vp); } | S_NMAP STRING STRING { |