Menu

#688 Paste Column affects the trailing line

development
open
nobody
None
5
2021-03-18
2021-03-13
No

I have this text

aaa
aaa
aaa

and mark all three lines, copy them with CTRL+C.

I have this target text

abcdefg
abcdefg

and insert the first block at horizontal position 3 with Paste Column (CTRL+SHIFT+V).
I obtain:

abcdefg
  aaa
  aaa
  aaa
ab   cdefg

Is this intended? I expect that the last line is not altered.

Discussion

  • Chris Sorenson

    Chris Sorenson - 2021-03-14

    Add a carriage return to the third line, then copy the three lines AND the fourth line. Place the cursor at the beginning of the second line and ctrl-v and it works as you expect (you don't need to shift-ctrl-v).

     
  • Amiga Lemming

    Amiga Lemming - 2021-03-14

    You are right. The example was not good. But if you imagine it would be a good example, the effect would still be that a trailing line is affected that should not be affected in my opinion.

     
  • Amiga Lemming

    Amiga Lemming - 2021-03-14

    Better example:

    Insert

    aaa
    aaa
    aaa
    

    columnar into

    abcdefgh
    abcdefgh
    abcdefgh
    abcdefgh
    abcdefgh
    abcdefgh
    

    you obtain:

    abcdefgh
    abaaacdefgh
    abaaacdefgh
    abaaacdefgh
    ab   cdefgh
    abcdefgh
    
     
  • Evan Teran

    Evan Teran - 2021-03-14

    @Amiga Do you know if this is with Nedit6 or the classic branch?

     
  • Amiga Lemming

    Amiga Lemming - 2021-03-14
    $ nedit -version
    NEdit 5.7
    Jan 14, 2017
    
         Built on: Linux, x86-64, GNU C
         Built at: Jan 17 2021, 02:16:15
       With Motif: (Untested) 2.3.8 [@(#)Motif Version 2.3.8]
    Running Motif: 2.3 [unknown]
           Server: The X.Org Foundation 12010000
           Visual: 24-bit TrueColor (ID 0x21, Default)
           Locale: de_DE
    
     
  • Chris Sorenson

    Chris Sorenson - 2021-03-17

    That's funny, this is what I get with locale en_US.UTR-8:

    abcdefgh
    abaaa
    aaa
    aaacdefgh
    abcdefgh
    abcdefgh
    abcdefgh
    abcdefgh

     
    • Amiga Lemming

      Amiga Lemming - 2021-03-17

      That's normal Paste (without SHIFT), right?

       
  • Chris Sorenson

    Chris Sorenson - 2021-03-18

    Oops sorry I forgot about the shift!

    If I do ctrl-shift-v it works correctly:

    abcdefg
    abaaacdefg
    abaaacdefg
    abaaacdefg
    abcdefg

     

Log in to post a comment.

MongoDB Logo MongoDB