We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f59c833 commit 9cb7caeCopy full SHA for 9cb7cae
1 file changed
plugins/sort/pluma-sort-plugin.c
@@ -434,10 +434,12 @@ sort_real (SortDialog *dialog)
434
&start,
435
lines[i],
436
-1);
437
- gtk_text_buffer_insert (GTK_TEXT_BUFFER (doc),
438
- &start,
439
- "\n",
440
- -1);
+
+ if (i < (num_lines - 1))
+ gtk_text_buffer_insert (GTK_TEXT_BUFFER (doc),
+ &start,
441
+ "\n",
442
+ -1);
443
444
last_row = lines[i];
445
}
0 commit comments