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

sl Command adds trailing commas #374

Closed
JBlocklove opened this issue Jan 10, 2020 · 2 comments
Closed

sl Command adds trailing commas #374

JBlocklove opened this issue Jan 10, 2020 · 2 comments

Comments

@JBlocklove
Copy link

When editing a csv, using the sl command to shift a range of cells to the right adds a trailing comma for each shift. I assume this happens because the program just adds additional commas to the left to accomplish the shift (at least from the csv perspective), but it doesn't account for the fact that in those cells there might not be anything to the right which needs to be preserved.

This makes parsing the csv after it's been edited using sc-im a bit more annoying, as now any other programs need to account for removing any trailing commas from the end of lines.

@andmarti1424
Copy link
Owner

andmarti1424 commented Mar 23, 2021

hello. yep. that is because maxcol (internal value) gets incremented when you shift right.

andmarti1424 added a commit that referenced this issue Apr 7, 2021
@andmarti1424
Copy link
Owner

@JBlocklove, this should be handled now. please update to latest commit and give it a try.
thanks.

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

No branches or pull requests

2 participants