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

Re-enable tab entry and ensure the cursor is moved the correct width #31

Merged
merged 2 commits into from
Jul 9, 2022

Conversation

iainh
Copy link
Contributor

@iainh iainh commented Jun 12, 2022

Previously the insert-tab binding was a no-op because DISABLE_TABS
is false causing insert_tab() not to be run. Remove the guard around
insert_tab() to ensure that a tab (or spaces) are outputted and
correct the calculation of the distance to move horizontally to work in
both the tab and pseudo-tab (spaces) cases.

Tested with DISABLE_TABS set to true (i.e. insert spaces) and false.

Previously the `insert-tab` binding was a no-op because DISABLE_TABS
is `false` causing insert_tab() not to be run. Remove the guard around
 insert_tab() to ensure that a tab (or spaces) are outputted and
correct the calculation of the distance to move horizontally to work in
both the tab and pseudo-tab (spaces) cases.

Tested with DISABLE_TABS set to `true` (i.e. insert spaces) and `false`.
Copy link
Collaborator

@mcobzarenco mcobzarenco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR and sorry for my very slow response. Good fix -- I see I broke this when decoupling buffers from "buffer views" in the UI. The changes look good 👍

@mcobzarenco mcobzarenco merged commit 52cd356 into zee-editor:master Jul 9, 2022
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.

None yet

2 participants