Skip to content
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

Delete and append instead of setline, to prevent bug when result line… #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

iovar
Copy link

@iovar iovar commented Sep 6, 2015

When the lines after combing are fewer than before combing, the extra lines remain in the buffer and mess up the file. e.g.

.format {
width: 100px;
height: 200px;

border: 2px solid blue;
}

will result to this:

.format {
width: 100px;
height: 200px;
border: 2px solid blue;
}
}

By deleting the lines and then appending, this doesn't happen and the result is correct.

@netcookies
Copy link

u may want to use "delete_" instead of "delete", prevent to cut the tempfile in clipboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants