You are here: PSPad forum > Bug report / Hlášení chyb > Undesired asterisk added when pressing Return

Undesired asterisk added when pressing Return

#1 Undesired asterisk added when pressing Return

Posted by: AndreasW | Date: 08/16/2017 09:52 | IP: IP Logged

Copy & paste the following code into a new text file or C++ file:

func(*ptr1,
*ptr2,*ptr3);

Then put the cursor upon the asterisk before ptr3 and press Return.

Desired result:

func(*ptr1,
*ptr2,
*ptr3);

Actual result:

func(*ptr1,
*ptr2,
**ptr3);

Tested with PSPad 5.0.0 build 243

Options: Reply | Quote | Up ^


#2 Re: Undesired asterisk added when pressing Return

Posted by: vbr | Date: 08/16/2017 12:07 | IP: IP Logged

Hi,
I believe, you can change the appropriate settings in:
Program settings :: Direct edit: Special settings
ContinueComment=0

It might be complicated, if you want this function active for actual comments and somehow special-case such usage; i'm not sure it would be currently possible.
hth,
vbr

Options: Reply | Quote | Up ^


#3 Re: Undesired asterisk added when pressing Return

Posted by: AndreasW | Date: 08/16/2017 14:45 | IP: IP Logged

Thank you, vbr. I've tried the workaround you've described, and it works. For me, this workaround is acceptable.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2017 Jan Fiala
Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák