-
-
Save datamafia/29ad101754b6014524be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scimoz = ko.views.manager.currentView.scimoz, | |
savedPos = scimoz.currentPos, | |
savedLinePos = scimoz.firstVisibleLine; | |
try { | |
scimoz.text = scimoz.text.replace(/\t/gm, " "); | |
scimoz.gotoPos(savedPos); | |
scimoz.lineScroll(0, savedLinePos-scimoz.firstVisibleLine); | |
} catch(e) { | |
return true; | |
} | |
return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment