Page 1 of 1

Strange behaviour of Multiview

Posted: Fri Mar 21, 2014 8:31 pm
by Raziel
I found a strange behaviour (bug?) in Multiview.

Steps to reproduce:

1) Get any .lha file with a text file inside (I can reproduce it with this)
2) Double-click on the file
--> Unarc will come up with the contents of the .lha
3) Double-click on "HOSTS" (or respectively on your text file)
--> Multiview will come up showing the file
4) Now right-click in Multiview to bring up it's menu
5) Project/Save-as
--> Choose a path and a filename (doesn't matter what or where)
6) Click OK
--> The file will be created, but it will always be empty (Bug?)

The file Multiview displays is in fact temporarily saved in T: (and it's completely unpacked)
Why Multiview isn't able to save it while being opened from Unarc is beyond me though.

Re: Strange behaviour of Multiview

Posted: Sat Mar 22, 2014 5:48 pm
by djg
I think MultiView is saving a marked block of text of zero size.
I can save a file fine, but if I click on any character, and then save the file, it is empty.
If I save it again without clicking in the text, the whole text is saved again.

Re: Strange behaviour of Multiview

Posted: Sat Mar 22, 2014 6:37 pm
by Raziel
djg wrote:I think MultiView is saving a marked block of text of zero size.
I can save a file fine, but if I click on any character, and then save the file, it is empty.
If I save it again without clicking in the text, the whole text is saved again.
You are right...i never ever imagined that clicking *into* the Multiview window to make it active might cause Multiview to think i marked a character.

Maybe changing this behaviour to only *mark* something if at least one character has actually been marked will prevent others to report this behaviour in future :-D

Thanks for the hint

Re: Strange behaviour of Multiview

Posted: Sat Mar 22, 2014 10:26 pm
by djg
Raziel wrote: You are right...i never ever imagined that clicking *into* the Multiview window to make it active might cause Multiview to think i marked a character.
Well, why would you if MultiView doesn't give you a clue?
Raziel wrote: Maybe changing this behaviour to only *mark* something if at least one character has actually been marked will prevent others to report this behaviour in future :-D
That would be better, yes. And maybe have a separate menu item in the edit menu for saving selected text, and leave the Save As menu item in the project menu for saving the entire file.