Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Cursor appears to be one character to the right of it's actual position.

In Workspaces, I've found a couple times that all of a sudden my cursor appears to be one character to the right of where it actually is. For example: if my text is <div|> where the pipe represents the cursor, if I hit backspace it ends up like this: <dv|> How can I fix this?

4 Answers

christineroukey
christineroukey
3,524 Points

Update! I've been working with Kara in Support. If your keyboard is set to the U.S. and you are using Chrome, the next thing to try is using Firefox instead. I downloaded it and opened Workspaces in that browser instead. So far so good. You may want to give that a try. Hope it helps!

this is very odd ... if this only happens in the workspaces, maybe trying to delete all the old workspaces (if you don't need them anymore), log out and back in ... maybe that'll do or a browser extension might cause this really strange issue ... hope this helps ...

christineroukey
christineroukey
3,524 Points

I am having the same issue and it's driving me nuts! It happens fairly regularly and then I have to fix what gets screwed up. I'm noticing it seems to coincide with when the closing tags are highlighted red. Imagine it's to bring attention to where there is an issue with the coding but it seems to screw up the cursor alignment. I've tried closing out of Workspaces and going back in but the alignment is still screwed up. The issue slows me down. I would definitely like to hear about how to avoid or fix this issue or if we need to alert the tech support team.

I am currently experiencing this exact issue. It started 19 October (yesterday), so roughly a day and some change ago.
t is like there is an extra space to the left of the cursor, but when you type or delete a character, it executes whatever is two spaces to the left of cursor/prompt. This also appears to only occur when you are typing at EOL (end of line). Anyone still experiencing this or something similar? If so, any possible solution/fix will be greatly appreciated.

UPDATE: I did some playing around, trying to find the source of problem. Not sure if it's a bug in the Workspace itself or perhaps the browser (Chrome), but I found a possible solution (works for me): If you have any line wrapping as a result of your window being too narrow, widen said window horizontally (if you have the screen real estate) until code fits on a single line. OR you can disable Word Wrap...and the bug/issue is (at least) temporarily fixed. If anyone tries this, please share whether or not this fix works on your end. Danke.