0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 21:22:39 +00:00

Remove redundant isStyle check

This commit is contained in:
G.Ambatte
2022-06-05 10:10:59 +12:00
parent 6bc5edd33f
commit d04df9aeb0

View File

@@ -212,7 +212,7 @@ const Editor = createClass({
}, },
sourceJump : function(targetLine=null){ sourceJump : function(targetLine=null){
if(this.isText() || (this.isStyle() && targetLine == 0)) { if(this.isText()) {
if(targetLine == null) { if(targetLine == null) {
targetLine = 0; targetLine = 0;