LightTable / Python

Python language plugin for Light Table
MIT License
98 stars 51 forks source link

indentation in python mode broken in 0.6.6 #18

Closed radix closed 10 years ago

radix commented 10 years ago

I'm not certain that it's the fault of this plugin, but I recently updated LightTable to 0.6.6 and noticed a regression in indentation of Python code.

Previously, when I would type:

foo(a, <RET>

my cursor would be directly below the "a". In 0.6.6 it's placed directly below the "(".

ibdknox commented 10 years ago

This appears to be a bug in the codemirror python mode, when there's a paren after the cursor. The same thing happens here if you load the python mode: http://codemirror.net/demo/loadmode.html

It only seems to happen in the case where there's a paren directly after the cursor though. Should probably file a bug against CM.

radix commented 10 years ago

I see! I hadn't noticed it only happened when the close-paren follows the cursor. I've filed https://github.com/marijnh/CodeMirror/issues/2607

cldwalker commented 10 years ago

Closing as the suggested behavior wasn't accepted upstream. @radix If there is a reasonable way forward for this, let me know and I can reopen.