Skip to content

Commit 924db36

Browse files
committed
debugging print outs
1 parent 0dd07c2 commit 924db36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

navigator.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,18 @@ namespace user_interface_base {
193193
}
194194

195195
case CursorDir.Left: {
196-
if (this.col == 0)
196+
if (this.widths[this.row] == 1)
197+
break
198+
else if (this.col == 0)
197199
this.col = this.widths[this.row] - 1
198200
else
199201
this.col -= 1
200202
break
201203
}
202204

203205
case CursorDir.Right: {
206+
if (this.widths[this.row] == 1)
207+
break
204208
if (this.col == this.widths[this.row])
205209
this.col = 0
206210
else

0 commit comments

Comments
 (0)