-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
:s/from/to/g only replaces one occurence in markdown-mode #5203
Comments
Just to be sure, |
Yup, not present at all in my .spacemacs. |
Also check the value of |
Ah gotcha. It is definitely |
If it's still consistent, some better steps to reproduce starting from |
markdown-mode had issue which overwrites match-data. I fixed it at jrblevin/markdown-mode#105. Could you try with latest version ? |
@syohex Hooray! I can confirm that this is fixed. Thanks for the quick turnaround time! |
Description
:s/from/to/g
doesn't replace all occurences on the line, but the preview shows the correct replacement.Reproduction guide
:.s/./x/g
Observed behaviour:
Only the first occurence is replaced, but the preview shows all occurences being replaced.
Expected behaviour:
All occurrences should be replace with the
g
flag.System Info
Backtrace
The text was updated successfully, but these errors were encountered: