improve wrapping for markdown

This commit is contained in:
nightwing 2013-07-16 23:54:57 +04:00
commit 9f068dc45d
2 changed files with 23 additions and 11 deletions

View file

@ -988,7 +988,7 @@ var VirtualRenderer = function(container, theme) {
this.$getLongestLine = function() {
var charCount = this.session.getScreenWidth();
if (this.$textLayer.showInvisibles)
if (this.showInvisibles && !this.session.$useWrapMode)
charCount += 1;
return Math.max(this.$size.scrollerWidth - 2 * this.$padding, Math.round(charCount * this.characterWidth));