You are here: PSPad forum > Bug report / Hlášení chyb > Swap with Line Above/Below gets confused
Posted by: joemarfice | Date: 2020-06-07 21:49 | IP: IP Logged
If I use the shortcut Ctrl+Up to move the current paragraph upwards, but Wrap is on, it treats the soft-wrap as a paragraph end - kinda - and makes a mess by creating duplicate data.
So, if the editor wrap is off, it originally looks like:
Quote:123456789-123456789-
abc
If you then press Ctrl+Up while the "abc" line is current, you get
Quote:abc
123456789-123456789-
and that's what I expect to happen.
HOWEVER, if wrap is ON, and it wraps at character 10 (to make this easy), it originally looks like this:
Quote:123456789-
123456789-
abc
If you then press Ctrl+Up while the "abc" line is current, you get
Quote:abc123456789-
123456789-123456789-
... which NO ONE wants! Notice that not only has "abc" entered the line of numbers, but there are now 3 series of numbers, instead of just two.
Running 5.0.3 (377) 32b.
Edited 1 time(s). Last edit at 2020-06-07 21:50 by joemarfice.
Posted by: pspad | Date: 2020-06-08 04:12 | IP: IP Logged
Hello
I tested it with 5.0.4 build - available in the developer forum and it worked correctly for me.
Edited 1 time(s). Last edit at 2020-06-08 04:14 by pspad.
Posted by: joemarfice | Date: 2020-06-11 04:07 | IP: IP Logged
OK, by coincidence I just booted a new computer with Windows 10, so I installed the PSPad dev version you mentioned, recreated the file:|
Quote:123456789-123456789-
abc
set the soft-wrap at char 10, selected "abc", clicked Edit > Lines Manipulation... > Swap with line above, and got this:
Quote:123456789-
123456789-[soft-return]
123456789-
I can't imagine why it works for you, and not for me. Maybe I'm not explaining it clearly enough.
At least there's a solution: Undo + turn off wrap-lines + do it again.
Posted by: pspad | Date: 2020-06-11 04:56 | IP: IP Logged
I will test it.
Posted by: pspad | Date: 2020-06-13 17:07 | IP: IP Logged
I hope next build will be OK.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR