-
Notifications
You must be signed in to change notification settings - Fork 56
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
Build is broken #129
Comments
Running on windows 10 creators update. |
Based on bisecting, the first commit with this behavior is 66e312b. Interestingly before that, atom was different enough that it is possible that this test still failed. |
Some further test strings which happen to pass "[0] aa (dd)\n[1](bb cc)\n" -> " aa[0] (dd)\n(bb cc)[1]\n" yet doesn't pass. The bug has something to do with newlines. |
Thanks! I'm pretty certain this did work when it was written. A while back I traced it down to a bug (or at least undocumented change) in the core text-buffer package. IIRC it changed how In the meantime if you can find a simple workaround that'd be awesome. |
Found a fix. I will include it with my pull request for #103 |
Found my mistakes... now I have to see if I can find the underlying bug. |
This time I have got it right. The difference is that atom text-buffer considers /\W/ a single line regular expression, while /[\W\n]/ is a multi-line regular expression as determined by the regular expression on text-buffer/lib/helpers.js line 6. |
Apparently I am on a slightly old version, but the bug is still there. https://github.com/atom/text-buffer/blob/master/src/helpers.js#L3 |
Root cause: atom/text-buffer#226 |
The cursor would skip across newlines in addition to a single word. Root cause is an underlying bug in text-buffer where old regular expression was considered single line. Extra new lines can be removed after it is fixed. see atom/text-buffer#226 see avendael#129
Workaround in #130 |
The cursor would skip across newlines in addition to a single word. Root cause is an underlying bug in text-buffer where old regular expression was considered single line. Extra new lines can be removed after it is fixed. see atom/text-buffer#226 see avendael#129
The cursor would skip across newlines in addition to a single word. Root cause is an underlying bug in text-buffer where old regular expression was considered single line. Extra new lines can be removed after it is fixed. see atom/text-buffer#226 see #129
Fix was merged. Thanks @MartyGentillon ! |
on 16abf38
The text was updated successfully, but these errors were encountered: