diff options
| author | Teddy Wing | 2017-12-16 22:03:23 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-12-16 22:03:23 +0100 |
| commit | 54d96624637e432f11f58d1b22c6307cc4ea7fa3 (patch) | |
| tree | 6140f7c64fa55fa7a8ecaa5b5331d615f3cbbeee | |
| parent | 72eb5c22cbe2787c9ff39cb319b04669d1757a5c (diff) | |
| download | irssi-vimput-54d96624637e432f11f58d1b22c6307cc4ea7fa3.tar.bz2 | |
update_input_line_when_finished: Reindent
| -rw-r--r-- | vimput.pl | 54 |
1 files changed, 27 insertions, 27 deletions
@@ -66,40 +66,40 @@ sub update_input_line_when_finished { return; } -if ($pid == 0) { - my $fifo_path = tmpnam(); + if ($pid == 0) { + my $fifo_path = tmpnam(); - open_tmux_split($fifo_path); + open_tmux_split($fifo_path); - mkfifo($fifo_path, 0600) or die $!; + mkfifo($fifo_path, 0600) or die $!; - open my $fifo, '<', $fifo_path or die $!; - $fifo->autoflush(1); + open my $fifo, '<', $fifo_path or die $!; + $fifo->autoflush(1); - while (<$fifo>) { - print $write_handle $_; - } + while (<$fifo>) { + print $write_handle $_; + } - close $fifo; + close $fifo; - close $write_handle; + close $write_handle; - POSIX::_exit(0); -} -else { - close $write_handle; - - Irssi::pidwait_add($pid); - - my $pipe_tag; - my @args = ($read_handle, \$pipe_tag); - $pipe_tag = Irssi::input_add( - fileno $read_handle, - Irssi::INPUT_READ, - \&pipe_input, - \@args, - ); -} + POSIX::_exit(0); + } + else { + close $write_handle; + + Irssi::pidwait_add($pid); + + my $pipe_tag; + my @args = ($read_handle, \$pipe_tag); + $pipe_tag = Irssi::input_add( + fileno $read_handle, + Irssi::INPUT_READ, + \&pipe_input, + \@args, + ); + } } |
