[Github-comments] [geany/geany-plugins] git-changebar: Add the possibility to undo hunk at cursor position (#531)

Jiří Techet notifications at xxxxx
Sun Feb 19 17:01:28 UTC 2017


The patch adds a new keybinding action for undoing hunks. When cursor is
placed at a line with a diff and the keybinding is invoked, the
corresponding hunk is undone.

To get the previous contents at the given position, a temporary Scintilla
instance is used into which the previous state of the document is loaded
and the corresponding text from the previous state of the document is
extracted. This temporary Scintilla object is then destroyed.
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany-plugins/pull/531

-- Commit Summary --

  * git-changebar: Add the possibility to undo hunk at cursor position

-- File Changes --

    M git-changebar/src/gcb-plugin.c (135)

-- Patch Links --

https://github.com/geany/geany-plugins/pull/531.patch
https://github.com/geany/geany-plugins/pull/531.diff

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170219/597bd261/attachment.html>


More information about the Github-comments mailing list