This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
Preserve cursor more accurately #8
Labels
Comments
sindresorhus
changed the title
Use
Preserve cursor more accurately
Aug 2, 2014
setTextViaDiff
when it's exposed in the editor
Closed
@IssueHunt has funded $40.00 to this issue.
|
issuehunt-oss
bot
added
the
💵 Funded on Issuehunt
This issue has been funded on Issuehunt
label
May 10, 2019
@sindresorhus I was looking into this and I removed the following line to check the default behaviour on Atom (v1.41.0). Line 43 in ac699f1
What happens can be seen here. The cursor is on line 11 before saving and on line 13 after saving, remaining on the line with I think this is the correct behaviour because if I am writing in the file and saving it while writing, keeping the cursor in the same line that I was typing is helpful. Does this make sense? |
I guess Atom improved their diffing too. This was not as smooth before and the caret would jump around. |
@sindresorhus has rewarded $36.00 to @jdiogopeixoto. See it on IssueHunt
|
issuehunt-oss
bot
added
🎁 Rewarded on Issuehunt
This issue has been rewarded on Issuehunt
and removed
💵 Funded on Issuehunt
This issue has been funded on Issuehunt
labels
Feb 13, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Use the Autoprefixer source map to map the cursor back to its original position.
IssueHunt Summary
jdiogopeixoto has been rewarded.
Backers (Total: $40.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: