Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pluma-sort-plugin: avoid extra empty line
Fixes #153
  • Loading branch information
sc0w committed Aug 19, 2018
1 parent ca00615 commit 957fc58
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/sort/pluma-sort-plugin.c
Expand Up @@ -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];
}
Expand Down

0 comments on commit 957fc58

Please sign in to comment.