Skip to content
Permalink
Browse files

pluma-sort-plugin: avoid extra empty line

Fixes #153
  • Loading branch information...
sc0w committed Aug 17, 2018
1 parent f59c833 commit 9cb7cae9f122126a711018084a264099a53f86c8
Showing with 6 additions and 4 deletions.
  1. +6 −4 plugins/sort/pluma-sort-plugin.c
@@ -434,10 +434,12 @@ sort_real (SortDialog *dialog)
&start,
lines[i],
-1);
gtk_text_buffer_insert (GTK_TEXT_BUFFER (doc),
&start,
"\n",
-1);

if (i < (num_lines - 1))
gtk_text_buffer_insert (GTK_TEXT_BUFFER (doc),
&start,
"\n",
-1);

last_row = lines[i];
}

0 comments on commit 9cb7cae

Please sign in to comment.
You can’t perform that action at this time.