mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-10-26 19:10:11 +03:00
Fix crash on interpreter parsing
This commit is contained in:
parent
8b0f2b1f07
commit
ab34f00204
@ -7,6 +7,7 @@ Change Log
|
||||
|
||||
### Fixes
|
||||
- Fix an issue where items in the Script menu were not sorted by prefix numbers.
|
||||
- Fix a possible crash on handling documents with an invalid shebang.
|
||||
|
||||
|
||||
|
||||
|
@ -565,7 +565,7 @@ private extension String {
|
||||
|
||||
// use first arg if the path targets env
|
||||
if interpreter == "env" {
|
||||
return components[1]
|
||||
return components[safe: 1]
|
||||
}
|
||||
|
||||
return interpreter
|
||||
|
Loading…
Reference in New Issue
Block a user