Sublime Forum

Word wrap is breaking one character early

#1

I’m finding that word wrap (“soft wrap”) is breaking my lines one character early, or I’ve misunderstood it. My settings for wrapping are:

{
	"rulers":
	[
		80,
		132
	],
	"word_wrap": true,
	"wrap_width": 80
}

For my test I’ve disabled all wrap-related packages (AutoWrap and Wrap Plus). Here’s an example:

You can see from the status bar it’s exactly 80 characters. The ruler is at 80 characters. There’s only one line, so it’s not even as though it’s counting a line break.

Do I need to add 1 to all of my wrap settings? But keep the ruler at 80?

OS: Ubuntu 17.10
Sublime Text 3176

0 Likes

#2

this is a known bug, yes the workaround for now is to add one to the wrap settings and keep the ruler at 80 chars

0 Likes