diff options
| author | Teddy Wing | 2017-12-16 21:52:38 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-12-16 21:52:38 +0100 |
| commit | 50016ba411c99415010bc47c42677acbbba8da4d (patch) | |
| tree | e0c593ef649682ba64393fa0ace0b194df97ff95 | |
| parent | 5bb2b3a3307d3d36b539caecf1955fceaa010e0c (diff) | |
| download | irssi-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.
| -rw-r--r-- | vimput.pl | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
