summaryrefslogtreecommitdiffstats
path: root/src/cmds_command.c
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2017-04-21 19:26:34 -0300
committerandmarti1424 <andmarti@gmail.com>2017-04-21 19:26:34 -0300
commit80909a52d73a5dc2478555a64f03a4719ec6788b (patch)
tree9f654993529803783bfcafae07cd8923c517831e /src/cmds_command.c
parent6d42e8c091377e609c18d0243a4345a1d5e4d544 (diff)
cpaste command to paste from clipboard to Sc-im
Diffstat (limited to 'src/cmds_command.c')
-rwxr-xr-x[-rw-r--r--]src/cmds_command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmds_command.c b/src/cmds_command.c
index 25af80b..cbb40ea 100644..100755
--- a/src/cmds_command.c
+++ b/src/cmds_command.c
@@ -45,6 +45,7 @@ L"autojus",
L"ccopy",
L"cellcolor",
L"color",
+L"cpaste",
L"e csv",
L"e tab",
L"e txt",
@@ -561,6 +562,10 @@ void do_commandmode(struct block * sb) {
swprintf(interp_line + wcslen(interp_line), BUFFERSIZE, L"%s%d", coltoa(cf), rf);
send_to_interp(interp_line);
+ } else if ( ! wcsncmp(inputline, L"cpaste", 6) ) {
+ swprintf(interp_line, BUFFERSIZE, L"cpaste");
+ send_to_interp(interp_line);
+
} else if ( ! wcsncmp(inputline, L"cellcolor ", 10) ) {
#ifdef USECOLORS
interp_line[0]=L'\0';