andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 39 forks source link

New Line problems with when editing Ruby source code #389

Closed richbowen closed 8 years ago

richbowen commented 8 years ago

Hey. When editing ruby code and the RETURN key is pressed to go to a new line, there is delay followed by extra indentation on the new line.

Here are some illustrations:

Fig 1. j6yroctows

Fig 2. htk2d3f5xx

Fig 3. almesdwn7d

This doesn't happen when working with Python code.

My platform is Windows 10 64-bit architecture. Enki version is 15.11.1

andreikop commented 8 years ago

@rgb-one, Qutepart has ruby indenter and event tests for it. But the tests are broken and indenter seems to be working incorrectly. It is difficult for me to test it because I don't code in ruby. But is seems like you do. Your help is welcome!

andreikop commented 8 years ago

Tried to type this code samples on master Enki and Qutepart. Works for me. However ruby indenter contains some other bugs. @rgb-one, post a code samples as a text if you are having problems on master. Closing this issue, help from a ruby programmer still welcome.

richbowen commented 8 years ago

Error persists on master. I tested on a flavor of Arch Linux. @hlamer you said you don't get this error on master? Here is the Ruby source code that I used, maybe that helps.

I will look into the Ruby indenter.