Menu

Some file extensions indent pasted text. How do I prevent that?

Help
BIllB
2016-01-06
2018-05-12
  • BIllB

    BIllB - 2016-01-06

    I have joe v4.1 installed on linux.

    My ~/.joerc config has

     -autoindent
     -columns nnn
    -force
     -guess_crlf
     -guess_indent
    -icase
    -indentc 9
    -istep 2
    -joe_state
     -lines nnn
    -lmsg \i%k%T%W%I%X %n %m%y%R %M %x
    -nobackups
    -nolocks
    -nonotice
    -notite
    -rmsg  %S Row %r Col %c %t  Ctrl-K H for help
    -tab 4
     -usetabs
     -wordwrap
     -wrap
    

    If I copy the following text into my clipboard

    /*
     * XXXXXXXX
     *  XXXXXXXX
     *  XXXXXXXX
     *  XXXXXXXX
     */
    

    Then paste into a joe-opened "test.txt", it's pasted OK

    test.txt (Modified)                             Row 7 Col 1  8:58  Ctrl-K H for help
    /*
     * XXXXXXXX
     *  XXXXXXXX
     *  XXXXXXXX
     *  XXXXXXXX
     */
    

    But if I paste into a joe-opened "test.php", it's pasted INDENTED

    test.php (Modified)                             Row 7 Col 1  8:58  Ctrl-K H for help
    /*
     * XXXXXXXX
      *  XXXXXXXX
       *  XXXXXXXX
        *  XXXXXXXX
         */
    

    What specific setting -- in .joerc? -- do I need to make sure I never get this indentation behavior? I only want to paste what I intended, not something reformatted.

     

    Last edit: BIllB 2016-01-06
  • Dirk

    Dirk - 2018-05-12

    i had the same problem... the only thing that fixed it for me was disabling syntax highlighting

     

Log in to post a comment.