Misc updates
This commit is contained in:
parent
f55a603031
commit
155340df66
2
kilo
2
kilo
@ -6,7 +6,7 @@ namespace Kilo;
|
|||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// ! App Constants
|
// ! App Constants
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
define('KILO_VERSION', '0.0.1');
|
define('KILO_VERSION', '0.1.0');
|
||||||
define('KILO_TAB_STOP', 4);
|
define('KILO_TAB_STOP', 4);
|
||||||
define('KILO_QUIT_TIMES', 3);
|
define('KILO_QUIT_TIMES', 3);
|
||||||
|
|
||||||
|
@ -536,7 +536,7 @@ class Editor {
|
|||||||
$filerow = $y + $this->rowOffset;
|
$filerow = $y + $this->rowOffset;
|
||||||
if ($filerow >= $this->numRows)
|
if ($filerow >= $this->numRows)
|
||||||
{
|
{
|
||||||
if ($this->numRows === 0 && $y === $this->screenRows / 3)
|
if ($this->numRows === 0 && $y === (int)($this->screenRows / 2))
|
||||||
{
|
{
|
||||||
$welcome = sprintf('PHP Kilo editor -- version %s', KILO_VERSION);
|
$welcome = sprintf('PHP Kilo editor -- version %s', KILO_VERSION);
|
||||||
$welcomelen = strlen($welcome);
|
$welcomelen = strlen($welcome);
|
||||||
|
@ -244,6 +244,9 @@ class Row {
|
|||||||
{
|
{
|
||||||
$idx = 0;
|
$idx = 0;
|
||||||
|
|
||||||
|
// Make sure the render buffer is empty before updating
|
||||||
|
// otherwise, you will have persistent output where you
|
||||||
|
// don't want it.
|
||||||
$this->render = '';
|
$this->render = '';
|
||||||
|
|
||||||
for ($i = 0; $i < $this->size; $i++)
|
for ($i = 0; $i < $this->size; $i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user