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

Script: fix load/save cycle #1001

Closed
wants to merge 1 commit into from
Closed

Conversation

janosvitok
Copy link
Contributor

Excess empty line was created after each cycle.
Reported by benste at http://www.qlcplus.org/forum/viewtopic.php?f=21&t=11467

Excess empty line was created after each cycle.
Reported by benste at http://www.qlcplus.org/forum/viewtopic.php?f=21&t=11467
@mcallegari
Copy link
Owner

Not ok.
Try this:

  • create a script
  • add a wait command
  • hit backspace
  • save

The command is lost

@mcallegari
Copy link
Owner

The fix is this:

    while (result.count() && result.last().isEmpty())
        result.takeLast();

@mcallegari mcallegari closed this Sep 17, 2017
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