SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: rowbearto on December 29, 2018, 07:30:58 PM

Title: SmartPaste issue when pasting on other than column 1 using Shift-Down to select
Post by: rowbearto on December 29, 2018, 07:30:58 PM
When I perform a line selection (using shift->down arrow, not using mouse), but then paste when the cursor is not on column 1, the indenting is off.

I have created a test case where you can reproduce this issue. Look for smartpaste.7z on support and follow instructions in README.

This is with Windows 7 x64, 23.0.0.11, hotfix 1
Title: Re: SmartPaste issue when pasting on other than column 1 using Shift-Down to select
Post by: Clark on December 30, 2018, 03:51:08 PM
Please post your user.cfg.xml
Title: Re: SmartPaste issue when pasting on other than column 1 using Shift-Down to select
Post by: rowbearto on December 30, 2018, 04:31:28 PM
The user.cfg.xml file is inside the smartpaste.7z that I originally posted on support. Please follow the README inside it for detailed steps to repro.
Title: Re: SmartPaste issue when pasting on other than column 1 using Shift-Down to select
Post by: Clark on December 30, 2018, 04:37:14 PM
Not sure how I missed step 1  ;D
Title: Re: SmartPaste issue when pasting on other than column 1 using Shift-Down to select
Post by: Clark on December 30, 2018, 10:09:57 PM
Give this version of smartp.e a try. Keep a copy of your original.

I think I've got a good fix for this but I'm a little suspicious only because I was able to simplify the code quite a bit.
Title: Re: SmartPaste issue when pasting on other than column 1 using Shift-Down to select
Post by: rowbearto on December 30, 2018, 11:12:49 PM
Thanks Clark! That does indeed seem to fix it!