Skip to content

Commit

Permalink
pluma-sort-plugin: avoid extra empty line
Browse files Browse the repository at this point in the history
Fixes #153
  • Loading branch information
sc0w committed Aug 19, 2018
1 parent f59c833 commit 9cb7cae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/sort/pluma-sort-plugin.c
Original file line number Diff line number Diff line change
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 9cb7cae

Please sign in to comment.