Re: Request for a "Rewrap paragraph" function

From: Brian Schott <>
Date: Wed, 09 Jun 2010 20:17:20 -0700

I just confirmed this bug. It seems that Scintilla's paragraph functions
don't work quite the way I expect them to... One workaround for this is
to just select some text on the current line. (Even one character should
do it) before running the wrapping script.

You'll notice that if you use Edit->Select In->Paragraph on your test
file that it won't work the way you want it to either.

On 06/09/10 18:04, phayz wrote:
> Brian,
> Wow! Thanks for such a prompt reply. I have re-tested and am getting
> the same results. In my test file I have 6 lines:
> 1) long line (my theme contains "buffer.edge_column = 80")
> 2) blank line
> 3) long line
> 4) blank line
> 5) long line
> 6) blank line
> To have the long lines re-wrapped, I put the cursor on the blank line
> *below* the long line and press Control+h and bingo!, the line is
> rewrapped as desired. This sequence of actions works for each of the
> long lines. What I had *expected* was that I put the cursor on the
> long line, and then press Control+h. Oddly enough, this works for the
> very first long line, which is the first line in the file. For all the
> other long lines though, the rewrapping will only work if the cursor
> is on the line *below* them.
> I have previously looked over the code and can't see what's wrong, but
> I am very much a newbie when it comes to Lua.
> Regards,
> Russell Dickenson
Received on Wed 09 Jun 2010 - 23:17:20 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:41:25 EST