mode(7) in function does not display the processed line
Reported by Samuel GOUGEON (@sgougeon)
Bug description:
In step by step mode -- a now seldom way that still existed for debugging scripts --, the line of instruction is no longer echoed in the console before display its results.
Error log: none. wrong behavior
How to reproduce the bug:
function test_of_mode(Mode)
//
m = mode()
mode(Mode)
a = rand(3,2)
disp(a)
mode(m)
endfunction
test_of_mode(7)
// CONSOLE output:
-->test_of_mode(7)
Mode pause : Entrez des lignes vides pour continuer.
>> <== "a = rand(3,2)" should be echoed here
a =
0.3616361 0.4826472
0.2922267 0.3321719
0.5664249 0.5935095
>> <== "disp(a)" should be echoed here
0.3616361 0.4826472
0.2922267 0.3321719
0.5664249 0.5935095
>> <== "mode(m)" should be echoed here
>> <== unexplained extra line
-->