Re: Paragraph settings not applied to last selected paragraph

2023-07-22 Thread Pavel Sanda
On Sat, Jul 22, 2023 at 01:42:37PM +0200, Jean-Marc Lasgouttes wrote: > Le 21/07/2023 ?? 16:27, Pavel Sanda a écrit : > >Clearly the idea was to iterate over all paragraphs in the range of > >[cur.selectionBegin();cur.selectionEnd()]. However ++c.pit() increases only > >paragraph number

Re: Paragraph settings not applied to last selected paragraph

2023-07-22 Thread Jean-Marc Lasgouttes
Le 21/07/2023 à 16:27, Pavel Sanda a écrit : Clearly the idea was to iterate over all paragraphs in the range of [cur.selectionBegin();cur.selectionEnd()]. However ++c.pit() increases only paragraph number (c.slices_[0].pit_) and let the relative cursor position within paragraph

Re: Paragraph settings not applied to last selected paragraph

2023-07-21 Thread Pavel Sanda
On Wed, Jul 19, 2023 at 02:50:50PM +0200, Pavel Sanda wrote: > it seems that paragraph settings are not applied to the last paragraph of > selected text. > > To reproduce: > 1. Have two paragraphs > 2. Make selection starting *in the middle* of the first paragraph and ending > at the end of the