cursor problem #2928
Replies: 1 comment
-
|
I'm pretty sure I've nailed down what's happening. It’s actually a bug with how the editor handles tab sizes. Basically, when you increase the tab size, the code looks wider on the screen, but the 'hitbox' for your mouse clicks doesn't update to match. It still thinks you're using the default tab width. So when you click on an indented line, the cursor gets thrown off because the math behind the scenes is out of sync with what you're seeing. The good news is that there’s already a pull request on the TIC-80 GitHub to fix this exact issue, so it should be patched eventually. Until then, you can get around it by sticking to the default tab size, using arrow keys to navigate, or just using spaces for indentation instead. Definitely annoying, but at least it's not just you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've started using TIC-80 recently, and have found it really nice, however, there is one annoyance occasionally. Sometimes, for what ever reason, I'll go to place the typing cursor somewhere with the cursor, but it get place offset, like 1 to 3 characters to the right. Reloading the page, does fix it, but it's kind of annoying. I'm not sure if this is bug or simply some feature I'm accidentally activating (it's happened in past). I have no idea what I do causes it. I'm curious if any one else has had this problem?
EDIT: I believe I figured it out. I think it has something to do with the tab size, when set to a higher tab size and clicking on an indented line, my cursor is shifted to the left by the number of tabs. I think it's still using one tab or something. I believe this is a bug.
Beta Was this translation helpful? Give feedback.
All reactions