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

cmd/govim: safely handle busy state changes for non-.go buffers #823

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

myitcv
Copy link
Member

@myitcv myitcv commented Mar 12, 2020

In 8926dec we backed out the changes for tracking all buffer changes.
But in so doing we didn't properly handle the situation where the busy
state changes and the cursor is in a non-go file.

Fix that and add a test to verify we don't regress.

Whilst we are at it:

  • consistently use GOVIM_test_SetUserBusy in our testscript tests
  • slightly refactor the types/consts used for getting the current cursor
    position

Fixes #821

@myitcv myitcv requested a review from leitzler March 12, 2020 14:42
@myitcv myitcv force-pushed the cmd_govim_only_set_busy_on_go_files branch from ea103e4 to a73d2f0 Compare March 12, 2020 15:16
In 8926dec we backed out the changes for tracking all buffer changes.
But in so doing we didn't properly handle the situation where the busy
state changes and the cursor is in a non-go file.

Fix that and add a test to verify we don't regress.

Whilst we are at it:

* consistently use GOVIM_test_SetUserBusy in our testscript tests
* slightly refactor the types/consts used for getting the current cursor
  position

Fixes #821
@myitcv myitcv force-pushed the cmd_govim_only_set_busy_on_go_files branch from a73d2f0 to a44bb52 Compare March 12, 2020 15:33
Copy link
Member

@leitzler leitzler left a comment

Choose a reason for hiding this comment

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

LGTM

@myitcv myitcv merged commit 30f2292 into master Mar 12, 2020
@myitcv myitcv deleted the cmd_govim_only_set_busy_on_go_files branch March 12, 2020 18:55
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.

cmd/govim: failed to resolve buffer
2 participants