Fix editor by removing pointless variable reassignment on contiguous lines
Merge pull request #1625 from juancarlospaco/fix/editor

[editor] Fix editor by removing pointless variable reassignment