brownplt / code.pyret.org

Website for serving Pyret to folks.
Other
24 stars 45 forks source link

typing multiple lines at REPL causes prompt height to expand #387

Closed thomascastleman closed 3 years ago

thomascastleman commented 3 years ago

Try typing in this check block at the REPL:

check:
  1 is 1
end

(it's important that you type it in--copying and pasting does not get the same effect). Notice the REPL prompt grows downwards as you type:

large-prompt

From what I can tell in dev tools it seems the .CodeMirror-lines div that is containing the code has a padding-bottom that is being repeatedly added to. I am not sure why however.

jpolitz commented 3 years ago

Confirmed. But 🤔🤔🤔.

I have no idea what's going on. I don't see relevant changes to pyret-codemirror-mode or CPO (which in any event has deployed in a while, waiting for a significant summer update)

asolove commented 3 years ago

👀 have a theory on this, will send a PR shortly