https://bugs.kde.org/show_bug.cgi?id=513898

--- Comment #8 from Christoph Cullmann <[email protected]> ---
(In reply to Grósz Dániel from comment #6)
> (In reply to Christoph Cullmann from comment #4)
> > Did some test patch.
> > 
> > If you could try that, with files with tabs and (and if stuff like block
> > selection still works), that would be nice.
> 
> It seems to work as expected when the specified position exists (isn't in
> the middle of a tab).
> 
> If the specified position is in the middle of a tab, it works weirdly. In
> the original example document
> <TAB>123456789
> after view.setVirtualCursorPosition(0,3) one would expect it to be rounded
> to the nearest position either before or after the tab, but the cursor
> actually moves to after the 2. It seems to work as if the algorithm rounds
> the position down to the nearest tab stop, computes the corresponding
> non-virtual position, then adds back the number of characters by which it
> rounded down the virtual position.

Hmm, yeah, that is somehow strange.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to