> +                     }
> +                     else if(linelen != 1)
> +                     {
> +                             line = sci_get_line(doc->editor->sci, i);
> +
> +                             // copy current line into *newfile
> +                             for(j = 0; line[j] != '\0'; j++)
> +                                     newfile[nfposn++] = line[j];
> +                     }
> +             }
> +             newfile[nfposn] = '\0';
> +             sci_set_text(doc->editor->sci, newfile);        // set new 
> document
> +
> +
> +             g_free(newfile);
> +     }

Your solution is beautiful, I changed it. Thanks.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/324/files#r49493851

Reply via email to