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
