Ask coding questions

← Back to all posts
My cursor's doing the funny
RahulChoubey1 (186)

I was working on a repl, and at some point, my cursor was at first halfway in a character, and then one character behind! (The functional cursor was in front of the visual cursor.) Why?

Answered by GeneralBaker (55) [earned 5 cycles]
View Answer
GeneralBaker (55)

I noticed this too, but I actually managed to fix this by zooming in when coding. I always have at 110% zoom, and it works perfectly! Just try finding the right zoom level for you! @RahulChoubey1

RahulChoubey1 (186)

@GeneralBaker Actually, zooming in then out works too! It's also the one I use.

MohammedPurno (0)

go to Settings>Keybinds>Default
And everything's fixed lol!

JackFranzel (29)

yea that happened to me too

Bookie0 (6407)

yup, happens to me too. are you on mobile? it's sadly a bug, report to bugs here :)

Bookie0 (6407)

@RahulChoubey1 ah hum, I was having this problem on iPad. Try reloading page, deleting tab?

Or maybe it's just a bug, so try making another repl with the same code, perhaps it'll work. Or try forking the repl.

Good luck! ;)

GrammarNaCI (0)

ok, but... who codes on an ipad?

RahulChoubey1 (186)

@GrammarNaci I did once; a torturous experience.

Bookie0 (6407)

@RahulChoubey1 indeed lol, but i've heard they've made it a bit better

JBloves27 (1905)

That has actually happened to me too! tbh, idk what happened. So I just reloaded the page

RahulChoubey1 (186)

@JBYT27 It works, but it's so slow


TsunamiOrSumth (539)

"the funny"
im actually laughing so hard rn

RayhanADev (2621)

Heya @RahulChoubey1

The Repl viewport acts funny on certain devices (I would know xD) and certain characters can muck things up. Try reloading the page and if that doesn’t help hit the button that organizes your code your you and it should work. If not submit a bug report! Cheers!
~ Ray <3


Maybe it's some glitching problem.

RahulChoubey1 (186)

@RYANTADIPARTHI definitely not a one-off incident, that's for sure


@RahulChoubey1 ok, so you mean it's not a glitch problem?

Coder100 (18930)

Did that line have some emojis? Emojis sometimes contain more than one character, but display visually as one character, making your cursor go weird (it's travelling further than what you see).

Also there might be invisible whitespace, like the zero width joiner.

"th‍is contains a zwj".length // => 20
RahulChoubey1 (186)

@Coder100 Neither of those are contained. I was clicking around to position my cursor sometimes; is it related to that? Also, I'm going to move this to bugs

Coder100 (18930)

is it line 5? It's supposed to do that when it wraps around a line, just change wrapping to none:


RahulChoubey1 (186)

@Coder100 nope. I mean inside the letter

Coder100 (18930)

well, might be a rendering issue @RahulChoubey1

Coder100 (18930)

im not encountering it, but you can report to bugs @RahulChoubey1