Thanks @b4n - I've finally had time to have a look at it. Your patches look 
good (I reviewed only the patches dealing with the undo stuff and didn't spend 
much time looking at the menu feature but it seems to work fine). I've just 
squashed your whitespace fix to the original commit and left the rest as 
separate commits. I've also updated README and added the REMOVED_MARKER_POS() 
macro.

The last patch is one more minor modification - it updates the cursor position 
when undoing deleted hunk - originally the cursor was placed at the position 
where the hunk started but I think it should be placed at the end of the undone 
deletion which corresponds more closely to what normal undo does. The question 
is what to do with modified hunks (i.e. those with both old lines and new 
lines). I still find it more natural to place the cursor behind them so it 
behaves the same way as delete-only hunk. 

-- 
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#issuecomment-303096401

Reply via email to