Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enterMode "keep" does not keep the line #21

Closed
iliakan opened this issue Oct 8, 2010 · 1 comment
Closed

enterMode "keep" does not keep the line #21

iliakan opened this issue Oct 8, 2010 · 1 comment

Comments

@iliakan
Copy link

iliakan commented Oct 8, 2010

I'm trying to use CodeMirror for javascript without autoindent.
In newest codemirror, it seems to be configurable like:

    tabMode: "shift",
    enterMode: "keep",
    electricChars: false,

But when I write this and press enter:

function f() {
  a = 5(cursor here)

The cursor appears at the beginning of next line, not indented same as "a=5".

Is that correct? I guess, should be indented... I mean, keep same indentation as a=5.

OS is Windows 7, browser is Firefox 3.6.10, codemirror from Git.

@marijnh
Copy link
Member

marijnh commented Oct 11, 2010

The whitespace is there, but in FF the cursor seems to end up in front of it, instead of behind it where it should be. I only tested in Chrome before, I guess, since it behaves properly there. This is fixed in dad2ce0 .

Cheers,
Marijn

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants