<p>In <a href="https://github.com/geany/geany-plugins/pull/324#discussion_r49270804">lineoperations/src/linefunctions.c</a>:</p>
<pre style='color:#555'>> +     * not all of this space will be used.)
> +  */
> +  newfile   = g_malloc(sizeof(gchar) * (totalnumchars+1));
> +  nfposn    = 0;
> +
> +  if(newfile)    // verify memory allocation
> +  {
> +          for(i = 0; i < totalnumlines; i++)    // loop through opened doc
> +          {
> +                  linelen = sci_get_line_length(doc->editor->sci, i);
> +
> +                  if(linelen == 2)
> +                  {
> +                          line = sci_get_line(doc->editor->sci, i);
> +
> +                          if(line[0] != '\r')
</pre>
<p>as <code>iswhitespaceline()</code> will recognize <code>\r</code> as a space, this code path is redundant with the <code>else if</code> below</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany-plugins/pull/324/files#r49270804">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJz48NsO6WFg4qqZw-zqhPrmt5aIAks5pYbvNgaJpZM4HBhj7.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-plugins/pull/324/files#r49270804"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>