Permalink
Browse files

leaf editor: Fix external editor call so the user can continue editio…

…n from widget to external editor without saving the edited value in the tree.
  • Loading branch information...
dod38fr committed Apr 15, 2012
1 parent df73b26 commit c57dd7d4ea8c1b9f1d54af3fabadbd520fdf0f8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 config-model-tk-ui/lib/Config/Model/Tk/LeafEditor.pm
@@ -290,7 +290,7 @@ sub exec_external_editor {
my $fh = File::Temp->new ; ;
die "Can't open temp file:$!" unless defined $fh ;
binmode($fh,":utf8");
- $fh->print($cw->{value});
+ $fh->print($cw->{e_widget}->get('1.0','end'));
$fh->close ;
# See mastering Perl/Tk p382

0 comments on commit c57dd7d

Please sign in to comment.