b4n commented on this pull request.
> +
+ if (data->old_lines > 0) {
+ gint line = sci_get_current_line (sci);
+ gint pos;
+
+ if (data->new_lines == 0 && !data->first_line_removed) {
+ line++; /* marker for deleted hunk is on previous line except the
1st line */
+ }
+ pos = sci_get_position_from_line (sci, line);
+
+ insert_buf_range (doc, contents, pos,
+ data->old_start - 1,
+ data->old_lines);
+ }
+
+ sci_scroll_caret(sci);
It's actually similarly wrong, but there's a fixed version in
00e37457c20c94e23b1eef8ea98ea1977c446635
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/531#discussion_r116390488