-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix codefolding gutter #977
Fix codefolding gutter #977
Conversation
This is my doing, I think, I noticed we were effectively setting a nested array, contrary to the spec, so altered it. However, I must be missing something here, why do we want a 0-length array as the first element? The CodeMirror manual says it should be an array of strings, and setting the option calls |
It is a strange thing. Actually, I think what you did was correct. I guess it could be a bug in CodeMirror. When you toggle line numbers from the menu (view->toggle line numbers), both gutters shows up correctly... |
Curiouser and Curiouser! Well, that sort of makes it sound like the |
Yes, it is not easy to follow what is happening. I will try to investigate more into how the line numbering gutter implementation gets things right. |
This makes adding gutters work. Without this, references instead of individual arrays to specify gutters are used. This seems to trigger strange behavior in CodeMirror. |
It seems that the |
WIP: The gutter won't be added otherwise using notebbok 5.0.0 / Mac / Chrome.
[ gutters , "CodeMirror-foldgutter"]
results in:[Array(0), "CodeMirror-foldgutter"]
gutters.push('CodeMirror-foldgutter');
results in["CodeMirror-foldgutter"]