[Github-comments] [geany/geany-plugins] git-changebar: Add the possibility to undo hunk at cursor position (#531)
Colomban Wendling
notifications at xxxxx
Sun May 14 20:58:34 UTC 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170514/00412693/attachment.html>
More information about the Github-comments
mailing list