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

Fix paragraph moving logic to avoid stuck at line beginning with number #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ChenQi1989
Copy link

The check in is_new_para() should match that of inword(). The current
codes only check isletter in is_new_para() while inword() also checks
number. This causes Meta-P (gotobop) to stuck at line beginning with number.

To reproduce the problem, use em to open the README file and do Meta-P
from the end of the file. And it will stuck at the line '1991.'.

Fix to also check numberic chars in is_new_para() function.

Signed-off-by: Chen Qi [email protected]

The check in is_new_para() should match that of inword(). The current
codes only check isletter in is_new_para() while inword() also checks
number. This causes Meta-P (gotobop) to stuck at line beginning with number.

To reproduce the problem, use em to open the README file and do Meta-P
from the end of the file. And it will stuck at the line '1991.'.

Fix to also check numberic chars in is_new_para() function.

Signed-off-by: Chen Qi <[email protected]>
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.

1 participant