The screen-recording in this Dropbox link shows more characters being pasted to the second file than are copied from the first. Sorry for the poor resolution of the recording, the original amount being copied is 3416, the amount pasted is 3421. Why does this happen please?
Why do extra characters get copied?
Yes it does. Also, it happens so often! it’s so annoying as it means making a new file every time I want to be sure that I’ve copied the text over exactly.
Could you paste the content in a new tab, then ctrl+click on the other tab and then right-click on either tab and select Diff Selected Tabs…. That will show a diff of what was actually added. Could you paste the diff here?
Hi, I can’t see anything anything happening at all when I “ctrl+click” on a tab. and the attached screenshot shows the right-click menu after right-clicking on a tab.
Hello, here is the text that ST produced in the bottom-window after following your instructions, with the apparent character-difference displayed in the bottom-bar being 3786 and 3791:
--- C:\Users\william\#My Own Files\run_java\tools\number_smoothing_algorithm\part_1\number_smoothing_algorithm_pt1__objects.java
+++ C:\Users\william\Downloads\^number_smoothing_algorithm_pt1__objects^ reference copy.java
@@ -53,7 +53,7 @@
//class-instantiations
//- - - - - - - - - - - - - - - -
public number_smoothing_algorithm_pt1 gf = new number_smoothing_algorithm_pt1(); public number_smoothing_algorithm_pt1__bf1 bf1 = new number_smoothing_algorithm_pt1__bf1(); public number_smoothing_algorithm_pt1__bf2 bf2 = new number_smoothing_algorithm_pt1__bf2();public number_smoothing_algorithm_pt1__bf3 bf3 = new number_smoothing_algorithm_pt1__bf3(); public number_smoothing_algorithm_pt1__info_methods inf = new number_smoothing_algorithm_pt1__info_methods();
-
+
public stopwatch st = new stopwatch(); public default_number_format df = new default_number_format();
}
\ No newline at end of file
Looks like all that’s changed is some whitespace on an empty line, could be related to indentation detection/conversion but I haven’t been able to reproduce this issue.
How about I send you the document that it happens with. Then you could reproduce the problem and investigate further.
Feel free. If you don’t want to publish it on the internet you can send it to my email: bschaaf@sublimetext.com.
Ok, thanks. I’ll wait until I have a few instances of it happening, and in each case save copies of both the file being copied from and that being copied to. I’ll ZIP it all up and send it to that address. I guess it may take me up to a week or so to collect it all together.
Hello, the ZIP-file at this Dropbox-link holds three instances of the bug happening. In each case I have provided and labelled clearly the file to be copied-from and that to be copied-to. Simply select all the text in the “from” file and copy it; then, select all the text in the “to” file and then just hit paste. You will notice a character-difference then between the two. Note that in all three instances the “from” and “to” files hold—apparently—exactly the same content initially: this is because whenever I work on a pre-existing file I firstly go and get a fresh copy of it from a different drive and then copy-paste its contents into my working-copy of that file on my computer, just so as to safeguard against any rare corruptions or degradations to the content of that working-copy that may have perhaps occured since I last touched it.
Please respond or else I won’t know if you’re still in-touch. If I don’t have some acknowledgement that you’ve seen my recent messages by tomorrow I’ll go and contact the Discord again.
I had a look and it seems like tabs are being converted to spaces hence the increased character count. You can prevent this via main menu View > Indentation
and uncheck Indent Using Spaces
.
Oh, that sounds sensible. Thank goodness you replied or it looks like the staff at ST would’ve just “put the issue in their backlog” indefinitely—i.e., would never have dealt with it because why on earth would they bother when they’re probably all millionaires by now and as apathetic as your average Amazon executive.
I’ll try that and see how I get on. Thanks a lot.