aboutsummaryrefslogtreecommitdiffstats
path: root/vimput.pl
diff options
context:
space:
mode:
authorTeddy Wing2017-12-16 21:52:38 +0100
committerTeddy Wing2017-12-16 21:52:38 +0100
commit50016ba411c99415010bc47c42677acbbba8da4d (patch)
treee0c593ef649682ba64393fa0ace0b194df97ff95 /vimput.pl
parent5bb2b3a3307d3d36b539caecf1955fceaa010e0c (diff)
downloadirssi-vimput-50016ba411c99415010bc47c42677acbbba8da4d.tar.bz2
Set prompt to saved Vim contents
Instead of just printing the contents of the FIFO, now that we know that things work, update the prompt input with the newly-edited string.
Diffstat (limited to 'vimput.pl')
-rw-r--r--vimput.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/vimput.pl b/vimput.pl
index e76da3d..88df057 100644
--- a/vimput.pl
+++ b/vimput.pl
@@ -257,8 +257,9 @@ sub pipe_input {
my ($read_handle, $pipe_tag) = @$args;
my $input = <$read_handle>;
+ chomp $input;
- print 'I: ' . $input;
+ Irssi::gui_input_set($input);
# TODO: Add $forked to not spawn more than one children unnecessarily