Cursor moves location when running command without selection
When running the format table command on the whole document, the cursor location moves to the start of the first table. Ideally, the cursor would not move from its original location when the command is run.
I think this is caused by a typo in a comparison operator in markdown_table_formatter.py:
https://github.com/bitwiser73/MarkdownTableFormatter/blob/a49c7755413870066cf42c38523091abfa66eba4/markdown_table_formatter.py#L72
I've created a pull request to fix this. https://github.com/bitwiser73/MarkdownTableFormatter/pull/14
This is the behavior I expected (no typo). It could be improved but it is not so easy to correctly update the cursor position if it is inside a formatted table. I have modified a little this behavior in another branch while cleaning this code and added a TODO.