Sublime Forum

`wrap_lines` has a bug. How can I find its source code to fix it?

#1

Build: 4192

You can set the list of rulers in several ways: 1 with just a list of numbers, and then each of those numbers can also be a list, enabling you to control styling of that ruler.

wrap_lines currently obeys the “number-type” rulers correctly, but if it encounters a ruler that is a list, it appears to instead use a “default” column (column 78-ish?).

How can I find its source code to fix this? Is it in one of those View Package File files that I see when I filter with “.py”? I sure would like to scan those .py files for key terms, like “rulers” or “wrap_lines”. I looked in sublime.py and sublime_plugin.py but haven’t found it so far.

0 Likes

#2

wrap_lines command is implemented in core.

Core issues are tracked at: https://github.com/sublimehq/sublime_text/issues

0 Likes

#3

Thank you, sir!

0 Likes