JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#2021 Problems with tab indentation in code editor
Author: user nosamu
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: JSyntaxPane
State: closed Help

> What steps will reproduce the problem? 1. Edit an SWF's ActionScript or P-Code. 2. Press Enter to add a new line somewhere. It will be auto-indented to the same level as the previous line. 3. Paste a line of tab-indented code. For example, I'm pasting the following P-Code: findpropstrict QName(PackageNamespace(""),"trace") 4. Place the cursor anywhere within the pasted line. 5. Try to type or delete text. Note: I have "characters per indent" set to 4, and "tabs for indent" is unchecked. > What is the expected output? What do you see instead? A tab is pasted, but it is displayed in the editor as 4 spaces. So the actual cursor position is offset from its displayed position. This is more obvious if you click around within the line; notice that the cursor appears to the left of where you click. Another problem I noticed is that when I have "tabs for indent" turned on, the code editor does not auto-indent new lines at all. > What version of the product are you using? Is it "nightly build"? Which operating system do you have? FFDec version: 18.4.1 (stable) Operating system: Windows 10 64-bit > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. I've attached a screen recording (GIF) to demonstrate the problem:
admin
This would be hard to fix as we use jsyntaxpane as editor and I am not really into touching the text editing code it has. That would require a lot of knowledge. So do not expect miracles... sorry.
user
I have noted this bug before too, I don't remember it occurring in some older versions but I would need to check first
user
I can confirm that the earliest build I have on my PC, v14.6, does not suffer from this issue. I will now test the second earliest I have readily available, v16.3.1
user
v16.3.1 suffers from this issue. I hope that may help narrow it down a bit
user
well... that's curious, it appears to indeed be an issue directly related to tabs indents. I guess I can't actually help.
admin
This should be fixed in nightly 2688. The editor should also properly indent new lines when "tabs for indent" is on.
State: new→upgraded
user
Works perfectly now, thank you!
admin
You're welcome.
State: upgraded→closed