openFile function is not using the provided arguments
Brought to you by:
cdolivet
As the title says, the openFile function is not using the provided arguments as parameters, intead it refers to global parameters.
File: edit_area_functions.js
Line: 848
Function: open_file
For example, it should use the provided syntax selection, instead of the global one:
Line 866: new_file['syntax'] = this.settings['syntax'];
should be changed to
new_file['syntax'] = (settings['syntax']) ? settings['syntax'] : this.settings['syntax'];