lichray / nvi2

A multibyte fork of the nvi editor for BSD
Other
144 stars 34 forks source link

Treat consecutive paragraph indicators as different paragraphs #119

Closed lichray closed 1 year ago

lichray commented 1 year ago

Consecutive empty lines count toward the same state, so there're 2x states (to get in and out). ^L and .PP are counted as text, hitting those in the text should be treated as getting out of a paragraph and then getting in.

Closes: #118 See also: https://marc.info/?l=openbsd-bugs&m=169100763926909&w=2

lichray commented 1 year ago

@leres Can you review this change? Thanks.

leres commented 1 year ago

@leres Can you review this change? Thanks.

I was able to verify the bug and also that this change solves it.