<p>If your Custom Command outputs some text, it's not inserted in the cursor place, it replaced the whole line. Steps to reproduce:</p>

<ol>
<li>Open Edit -> Format -> Send Selection to -> Set Custom Commands</li>
<li>Add new command <code>echo "foobar"</code>, click <code>Ok</code>
</li>
<li>Place the cursor in empty line and type some text. For example <code>important text</code>
</li>
<li>Press Ctrl+1 to perform the created command. Number may differ if it's not your first custom command.</li>
</ol>

<p>Result: the line has been completely replaced by <code>foobar</code> text.<br>
Expected result: the <code>foobar</code> added after the <code>important text</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/geany/geany/issues/1035">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ8Qf4BrlKL0VHO96HYc8c85EquF-ks5qBJo0gaJpZM4IeIXW.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1035"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>