Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Don’t throw exception when replacing with an empty find string - #434

Merged
izuzak merged 2 commits into
masterfrom
iz-fix-markers-access
Jul 7, 2015
Merged

izuzak merged 2 commits into
masterfrom
iz-fix-markers-access

Conversation

@izuzak

@izuzak izuzak commented Jul 5, 2015

Copy link
Copy Markdown
Contributor

This fixes #402 (comment) and closes #402 (since the initial report was fixed in ed00ffb, I believe):

cc @kevinsawicki @benogle for 👀

@lee-dohm

lee-dohm commented Jul 5, 2015

Copy link
Copy Markdown
Contributor

👍 Looks good to me

Additionally, rather than simply beeping, should we display an auto-hiding warning notification about what the problem is? I get really frustrated when I try to do something and whatever program just beeps at me. I feel like it's roughly the equivalent of the dialog box: "An error occurred. Ok?"

@izuzak

izuzak commented Jul 6, 2015

Copy link
Copy Markdown
Contributor Author

Additionally, rather than simply beeping, should we display an auto-hiding warning notification about what the problem is? I get really frustrated when I try to do something and whatever program just beeps at me. I feel like it's roughly the equivalent of the dialog box: "An error occurred. Ok?"

I definitely wouldn't mind discussing that in a new issue 👍 since that pattern is used in a few places and also keeping one PR to one thing has historically been a Good Decision ™️. :)

@lee-dohm

lee-dohm commented Jul 6, 2015

Copy link
Copy Markdown
Contributor

You're absolutely right. Done 😀

@benogle

benogle commented Jul 6, 2015

Copy link
Copy Markdown
Contributor

👍

izuzak added a commit that referenced this pull request Jul 7, 2015
Don’t throw exception when replacing with an empty find string
@izuzak
izuzak merged commit df25aeb into master Jul 7, 2015
@izuzak
izuzak deleted the iz-fix-markers-access branch July 7, 2015 08:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uncaught TypeError: Cannot read property 'length' of undefined

3 participants