improve wrapping for markdown
This commit is contained in:
parent
a4a30b6665
commit
9f068dc45d
2 changed files with 23 additions and 11 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue