> +
> +     sci_end_undo_action(doc->editor->sci);
> +}
> +
> +
> +/* Sort Lines Ascending and Descending */
> +void sortlines(GeanyDocument *doc, gboolean asc) {
> +     gint  total_num_chars;  /* number of characters in the document */
> +     gint  total_num_lines;  /* number of lines in the document */
> +     gchar **lines;          /* array to hold all lines in the document */
> +     gchar *new_file;        /* *final* string to replace current document */
> +     gint  i;                /* iterator */
> +
> +     total_num_chars = sci_get_length(doc->editor->sci);
> +     total_num_lines = sci_get_line_count(doc->editor->sci);
> +     lines           = g_malloc(sizeof(gchar *) * total_num_lines+1);

Fix available at 
https://github.com/b4n/geany-plugins/commit/ee354655993507b7b998a3c13e4417ea0b1286af

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

Reply via email to