This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Commit f1aa436
committed
Fix deceptive class when an error occurs
Consider the following scenario:
1. Turn on regex
2. Search for something simple in the file, eg "this"
3. has-results class appears as expected
4. Add an opening parenthesis to the find pattern
5. Find box is still green?!?!
Step 5 introduces contradicting information: a red error message yet a
green find box with the has-results class.
So now when we set an error message we make sure to remove the
has-results class and add the has-no-results class.
I'm also fairly certain that nulling a function is not a good idea, so I
removed that line.1 parent 64b6a20 commit f1aa436
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | 310 | | |
312 | 311 | | |
313 | 312 | | |
| |||
342 | 341 | | |
343 | 342 | | |
344 | 343 | | |
| 344 | + | |
| 345 | + | |
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
| |||
0 commit comments