[Github-comments] [geany-plugins] Add new "Lineoperations" plugin (#324)
Colomban Wendling
notifications at xxxxx
Sun Jan 17 14:39:38 UTC 2016
> +
> + 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160117/5c4f805a/attachment.html>
More information about the Github-comments
mailing list