vte_terminal_feed_child() messes up text in some cases
My use case is using nano as the default text editor for git commits. Having run 'git commit', I see the following standard text in nano:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is up to date with 'origin/master'.
#
# Changes to be committed:
<list of files>
Now, I want to add my commit description which is a multi-line text and looks something like
Short desc
Long verbose description
If I do this via vte_terminal_feed_child (for example, by using Tilix's "advanced paste" dialog or the dev version of xfce4-terminal), my commit text gets messed up like this:
Short desc
# Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit.
Long verbose description#
# On branch master
# Your branch is up to date with 'origin/master'.
#
# Changes to be committed:
<list of files>
However, when using vte_terminal_paste_clipboard/primary(), the text gets pasted correctly.
Please look into this. Thanks!