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

Return success for empty replies, fixes #3 #5

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

Conversation

sometimesfood
Copy link

i3 returns empty JSON arrays for workspace commands if the target workspace is currently focused:

% i3-msg workspace 3
[{"success":true}]
% i3-msg workspace 3
[]

Therefore, this pull request changes Command to report success for zero-length replies. This fixes issue #3.

I am not exactly a Go expert, so please let me know if this is too crude.

@mdirkse
Copy link

mdirkse commented May 1, 2017

I've applied this to my fork: mdirkse/i3ipc-go@e703b57

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.

2 participants