Re: Possible bug: cursor jumps to the wrong position when undoing changes?

2015-08-10 Fir de Conversatie Dmytro Konstantinov
Hi Christian! Sorry for the late reply, On Wednesday, August 5, 2015 at 7:37:51 PM UTC+1, Christian Brabandt wrote: > > Form everything I've read about the expected behaviour for restoring the > > cursor positioning (eg: > > http://vim.wikia.com/wiki/Restore_the_cursor_position_after_undoing_te

Re: Possible bug: cursor jumps to the wrong position when undoing changes?

2015-08-05 Fir de Conversatie Christian Brabandt
Hi Dmytro! On Di, 04 Aug 2015, Dmytro Konstantinov wrote: > Hi Christian! > > Thanks for getting back to me! > > On Tuesday, August 4, 2015 at 6:35:55 PM UTC+1, Christian Brabandt wrote: > > > I am nut sure, I understand fully. How do you suggest to change the > > cursor positioning? > > I'm

Re: Possible bug: cursor jumps to the wrong position when undoing changes?

2015-08-04 Fir de Conversatie Dmytro Konstantinov
Hi Christian! Thanks for getting back to me! On Tuesday, August 4, 2015 at 6:35:55 PM UTC+1, Christian Brabandt wrote: > I am nut sure, I understand fully. How do you suggest to change the > cursor positioning? I'm afraid I know neither C nor VIM internals well enough to propose a solution. W

Re: Possible bug: cursor jumps to the wrong position when undoing changes?

2015-08-04 Fir de Conversatie Christian Brabandt
Hi Dmytro! On Mo, 03 Aug 2015, Dmytro Konstantinov wrote: > After a bit of digging around we managed to confirm that it is, indeed, a bug > in vim. It can be replicated with `vim +"source [filename]"` using the > following two tests: > > 1. [OK] The following test produces the expected result:

Re: Possible bug: cursor jumps to the wrong position when undoing changes?

2015-08-03 Fir de Conversatie Dmytro Konstantinov
After a bit of digging around we managed to confirm that it is, indeed, a bug in vim. It can be replicated with `vim +"source [filename]"` using the following two tests: 1. [OK] The following test produces the expected result: substitution change is joined to the previous change in the buffer (

Possible bug: cursor jumps to the wrong position when undoing changes?

2015-07-30 Fir de Conversatie Dmytro Konstantinov
Hi guys, I think I've found a bug in the way the cursor position is handled when undoing `:s/...` command. It's a bit of a long winded story, so please bear with me: The way my VIM is set up, saving a buffer to a file triggers a custom StripTrailingSpaces() function, which is attached at the en