diff options
author | Pablo Barciela <[email protected]> | 2018-08-17 04:14:11 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2018-08-19 05:32:14 +0200 |
commit | 957fc585cb9a1edd2ea4ae73f5c03896b35736d3 (patch) | |
tree | 8685c5a37d780f59316848e319c68f1da5395cc4 /plugins | |
parent | ca00615b510549a4abfe44f7b1f97485e1e9f804 (diff) | |
download | pluma-957fc585cb9a1edd2ea4ae73f5c03896b35736d3.tar.bz2 pluma-957fc585cb9a1edd2ea4ae73f5c03896b35736d3.tar.xz |
pluma-sort-plugin: avoid extra empty line
Fixes https://github.com/mate-desktop/pluma/issues/153
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sort/pluma-sort-plugin.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/sort/pluma-sort-plugin.c b/plugins/sort/pluma-sort-plugin.c index 49d804bf..6405cd76 100644 --- a/plugins/sort/pluma-sort-plugin.c +++ b/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]; } |