From 50016ba411c99415010bc47c42677acbbba8da4d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 16 Dec 2017 21:52:38 +0100 Subject: 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. --- vimput.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3