Changeset View
Changeset View
Standalone View
Standalone View
src/console/PhutilInteractiveEditor.php
Context not available. | |||||
$offset_flag = ''; | $offset_flag = ''; | ||||
if ($offset && !phutil_is_windows()) { | if ($offset && !phutil_is_windows()) { | ||||
$offset = (int)$offset; | $offset = (int)$offset; | ||||
if (preg_match('/^mate/', $editor)) { | if (@preg_match('/^mate/', $editor)) { | ||||
$offset_flag = csprintf('-l %d', $offset); | $offset_flag = csprintf('-l %d', $offset); | ||||
} else { | } else { | ||||
$offset_flag = csprintf('+%d', $offset); | $offset_flag = csprintf('+%d', $offset); | ||||
Context not available. | |||||
* @task config | * @task config | ||||
*/ | */ | ||||
public function getName() { | public function getName() { | ||||
if (!strlen($this->name)) { | if (!@strlen($this->name)) { | ||||
return 'untitled'; | return 'untitled'; | ||||
} | } | ||||
return $this->name; | return $this->name; | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0