Menu

#1014 Tab behaviour inconsistent

obsolete: 8.5a0
closed-fixed
5
2003-11-15
2001-05-08
Anonymous
No

Insertion of \t in a text widget has two different kinds of behaviour, depending on how the tab stops were set.

a) With the default 8 characters per tab, the effect of inserting \t is to move the insertion point to the next tab stop to the right.

b) If you set (with -tabs) other tab stops, the effect of the nth \t in a line is to attempt to position the insertion pont at the nth tab stop. If this is not possible (insertion point already to right of nth stop) then \t inserts a single space.

The behaviour of tabs should be consistent, regardles of how tab stops were set. My personal preference would be for behaviour a), which I think is what most people would expect.

Illustrative script file attached.

Discussion

  • Nobody/Anonymous

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry, didn't mean to be anonymous. Thought I had signed in,
    but this @#$@ interface never ssems to do what I expect!.

    Ian Gay
    gay@sfu.ca

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry, didn't mean to be anonymous. Thought I had signed in,
    but this @#$@ interface never ssems to do what I expect!.

    Ian Gay
    gay@sfu.ca

     
  • Don Porter

    Don Porter - 2003-11-12
    • assigned_to: nobody --> vincentdarley
     
  • Vince Darley

    Vince Darley - 2003-11-15

    Logged In: YES
    user_id=32170

    Fixed this for 8.5a0.

     
  • Vince Darley

    Vince Darley - 2003-11-15
    • milestone: --> obsolete: 8.5a0
    • status: open --> closed-fixed