minitel-standalone
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -91,3 +91,10 @@ "use strict"; | ||
if (this.cursorActuallyAt[0] !== 0 || this.cursorActuallyAt[1] !== 0) { | ||
this.cursorActuallyAt[1] -= 1; | ||
if (this.cursorActuallyAt[1] === 0) { | ||
const lines = this.value.split('\n'); | ||
this.cursorActuallyAt[0] -= 1; | ||
this.cursorActuallyAt[1] = lines[this.cursorActuallyAt[0]].length; | ||
} | ||
else { | ||
this.cursorActuallyAt[1] -= 1; | ||
} | ||
this.lastFocusCursorX = this.cursorActuallyAt[1]; | ||
@@ -94,0 +101,0 @@ const lines = this.value.split('\n'); |
{ | ||
"name": "minitel-standalone", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "A standalone package for minitel components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -123,3 +123,9 @@ import { Focusable, FocusableAttributes } from '../abstract/focusable.js'; | ||
if (this.cursorActuallyAt[0] !== 0 || this.cursorActuallyAt[1] !== 0) { | ||
this.cursorActuallyAt[1] -= 1; | ||
if (this.cursorActuallyAt[1] === 0) { | ||
const lines = this.value.split('\n'); | ||
this.cursorActuallyAt[0] -= 1; | ||
this.cursorActuallyAt[1] = lines[this.cursorActuallyAt[0]].length; | ||
} else { | ||
this.cursorActuallyAt[1] -= 1; | ||
} | ||
this.lastFocusCursorX = this.cursorActuallyAt[1]; | ||
@@ -126,0 +132,0 @@ const lines = this.value.split('\n'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179397
3838