From 516f13a1da74f2480c1d42eb29700f83ff9a4603 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 17 Dec 2017 00:38:00 +0100 Subject: Rename `update_input_line_when_finished` Make it even longer! Well, the original name didn't seem to be descriptive enough since we're calling `open_tmux_split` inside it instead of in the signal handler. --- vimput.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vimput.pl') diff --git a/vimput.pl b/vimput.pl index 091a7d3..a445c9d 100644 --- a/vimput.pl +++ b/vimput.pl @@ -59,7 +59,7 @@ sub open_tmux_split { } -sub update_input_line_when_finished { +sub open_tmux_and_update_input_line_when_finished { return if $forked; my ($read_handle, $write_handle); @@ -188,6 +188,6 @@ Irssi::signal_add_last 'gui key pressed' => sub { if ($key eq CTRL_X) { write_input(Irssi::parse_special('$L', undef, 0)); - update_input_line_when_finished(); + open_tmux_and_update_input_line_when_finished(); } }; -- cgit v1.2.3