Skip to content
← Back to Community
My cursor's doing the funny
Profile icon
RahulChoubey1

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 [earned 5 cycles]
View Answer
Voters
Profile icon
gottesmanw23
Profile icon
MichaelKlingenb
Profile icon
Ker08
Profile icon
OKLinne
Profile icon
BaconCodes
Profile icon
AndreDrV945
Profile icon
NAREKBARSEGHYA2
Profile icon
ZacharyBlumenfe
Profile icon
RustyCurry
Profile icon
python9160
Comments
hotnewtop
Profile icon
GeneralBaker

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

Profile icon
RahulChoubey1

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

Profile icon
Ker08

I found another way to fix it by toggling the text size.

Profile icon
mpwteach

This is for sure a Chromebook bug. One way to temporarily fix it is to:

  • go to Settings/Device/Displays
  • change the display size to 95%, and reload the replit
  • then go back and set the display size to 100%, do NOT reload page
    Unfortunately, reloading the page restores the bug...
Profile icon
MohammedPurno

go to Settings>Keybinds>Default
And everything's fixed lol!
just a little help

Profile icon
JackFranzel

yea that happened to me too

Profile icon
Bookie0

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

Profile icon
RahulChoubey1

@Bookie0 Chromebook

Profile icon
Bookie0

@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! ;)

Profile icon
GrammarNaCI

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

Profile icon
RahulChoubey1

@GrammarNaci I did once; a torturous experience.

Profile icon
Bookie0

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

Profile icon
JBloves27

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

Profile icon
RahulChoubey1

@JBYT27 It works, but it's so slow

falls-asleep-on-desk.jpeg

Profile icon
JBloves27
Profile icon
TsunamiOrSumth

"the funny"
im actually laughing so hard rn

Profile icon
RahulChoubey1

@tsunami21 for lack of a better term

Profile icon
RayhanADev

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

Profile icon
RYANTADIPARTHI

Maybe it's some glitching problem.

Profile icon
RahulChoubey1

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

Profile icon
RYANTADIPARTHI

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

Profile icon
RayhanADev

@RYANTADIPARTHI much answer.

Profile icon
Coder100

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
Profile icon
RahulChoubey1

@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

Profile icon
Coder100

send repl and line @RahulChoubey1

Profile icon
RahulChoubey1
Profile icon
Coder100
Profile icon
Coder100

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

image

@RahulChoubey1

Profile icon
RahulChoubey1

@Coder100 nope. I mean inside the letter

Profile icon
Coder100

are you on mobile? @RahulChoubey1

Profile icon
RahulChoubey1

@Coder100 I'm on a Chromebook

Profile icon
Coder100

well, might be a rendering issue @RahulChoubey1

Profile icon
Coder100

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

Profile icon
RahulChoubey1

@Coder100 I did