Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

#20 JB's UseTabChar attribute ignored

Moderate
closed-fixed
6
2000-09-21
2000-09-12
Ernie Rael
No

Using jVi-0.6.3.1, when in insert mode if the user enters a tab character then a tab character is always inserted into the file. The UseTabCharacter attribute should be consulted and either blanks or tabs use as indicated.

Discussion

  • Ernie Rael

    Ernie Rael - 2000-09-12

    Fix available in next release, 0.6.3.2 or later.
    -ernie

    I introduced this bug when fixing another problem.
    JB4 handles tabs correctly in the editor so i turned on
    useTabChar and ran into some problems. I was always calling
    jb to insert tabs and it made them shiftwidth big rather
    than tabwidth. In jVi-0.6.3 there is the logic
    if(JB.smartTab) {
    JB.putTab();
    } else {
    doc.putChar('\t');
    }

    the quick fix for the problem looks like
    if(JB.smartTab || ! JB.useTab) {
    JB.putTab();
    } else {
    doc.putChar('\t');
    }
    this should fix the basic problem, but the tabwidth might be
    wrong depending on how you have things set. The right
    fix is to convert the tab to spaces myself when needed,
    as is done in other places (<<, >>); if/when i get time.

     
  • Ernie Rael

    Ernie Rael - 2000-09-12
    • status: open --> open-fixed
     
  • Ernie Rael

    Ernie Rael - 2000-09-21
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.