There are two independent functions and two settings.

  1. line breaking, lets call the setting B, which adds a line end at the Bth character (except tabs may be counted as more than one) on the line, irrespective of where on the screen it happens to be, so it is independent of font and screen width of the characters on the line.

  2. long line marking, lets call the setting L, which indicates a screen position with a vertical line or background at the pixel position of L space (0x20) characters in the current font and is the same for all lines on the screen irrespective of the characters on the line, even if they are double width, zero width, or using a non-monospace font.

So they are doing different things, counting characters and counting screen position in pixels. The only time there might be a coincidental relationship is with a proper mono font and all single width characters.

But somebody had the idea of using L instead of B if B is not set. That is the number set for L is used as B, there is no interaction between the functions, just they have the same number as their setting. So there is no guarantee that they will do the same thing, and again it is only coincidentally close with single width characters, no combining characters and monospace font.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/2078/1722367529@github.com>