Author Topic: Line Insert problems with Ada  (Read 3903 times)

matt.newby

  • Community Member
  • Posts: 10
  • Hero Points: 0
Line Insert problems with Ada
« on: January 08, 2008, 12:19:50 am »
I have a problem when editing Ada files. When I place a cursor at the start of a line containing an If, and press Enter, the line is inserted after the If, not before as I expect. It is also not possible to place the cursor anywhere on the If line an split the line, it always inserts a new line after the If.  This happens for While's and probably other key words.
Example :

Code: [Select]
| If a = b then
    c := d
  end if
becomes
Code: [Select]
  If a = b then
|
    c := d
   end if
Expected to get
Code: [Select]
|
  If a = b then
    c := d
  end if

I am using Linux, V12.0.3 with hotfixes from late last year.
« Last Edit: January 08, 2008, 12:23:16 am by matt.newby »

rgloden

  • Senior Community Member
  • Posts: 169
  • Hero Points: 5
Re: Line Insert problems with Ada
« Reply #1 on: January 08, 2008, 06:42:42 am »
I've been plagued by the same problem in Windows.  I figured it was just some feature I don't understand...

hs2

  • Senior Community Member
  • Posts: 2752
  • Hero Points: 291
Re: Line Insert problems with Ada
« Reply #2 on: January 08, 2008, 11:32:18 am »
Although I'm not an Ada user it sounds like a quite neat feature.
However, <SHIFT-ENTER> should also work for you in case it's still bound to maybe-split-insert-line (which is the default binding).
HS2

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3231
  • Hero Points: 459
Re: Line Insert problems with Ada
« Reply #3 on: January 08, 2008, 04:17:55 pm »
Thanks for pointing this out.  This issue will be fixed in the next release of SLickEdit.

matt.newby

  • Community Member
  • Posts: 10
  • Hero Points: 0
Re: Line Insert problems with Ada
« Reply #4 on: January 08, 2008, 10:13:19 pm »
You have all been a great help. I have now bound Enter to keyin-enter for ADA and will see how that goes.