Page 1 of 1

Stop paste from going to the next line

Posted: Sat Nov 09, 2019 6:10 am
by AravalliCraton
I'm using Zeus 3.98p with the brief keymap.

When I paste, the cursor goes to the next line. Is there a way to keep the cursor on the same line?

Re: Stop paste from going to the next line

Posted: Sat Nov 09, 2019 6:51 am
by jussij
Like the original Brief, Zeus has three marking modes, Column, Line and Block.

Each of those marking modes have a corresponding pasting mode which behave differently.

Zeus also has two column marking modes controlled by the Option, Editor Options menu General section, Brief column paste mode option.

Turning on that option makes the Zeus column paste work like the original Brief editor.

Finally when copying marked text, depending on how you perform the marking will determine if the carriage, return line feed gets included in the copied text.

You can help visualise this behaviour by using the View, White Space menu.

So for example using the Alt + M block marking, where the | represents the cursor, the following marked area will not include the CRLF in the copy:

Code: Select all

this is some test|
Whereas this example does include the CRLF in the copy:

Code: Select all

this is some test
|
Now if this information has not helped you are going to need to provide some extra detail on how you are marking and pasting the text.

For example which Brief key strokes are you using the mark and copy the text :?:

Also are you using the Ins numpad key to do the paste :?:

Cheers Jussi

Re: Stop paste from going to the next line

Posted: Sun Nov 10, 2019 11:00 am
by AravalliCraton
Thanks for the explanation, Jussi.

Using Alt+m to mark instead of Alt+a solves my problem.

Re: Stop paste from going to the next line

Posted: Sun Nov 10, 2019 11:42 am
by jussij
FYI the Alt + a is bound to the column marking mode as it is bound to the MarkColumnToggle keyboard function.

More information on the different marking modes can be found here: viewtopic.php?f=3&t=7764

Cheers Jussi

PS: To determine what key is bound to what function just record a simple keyboard macro and then viewing the source code of the macro all done via the Macros menu.