Fix translateToString endCol default arg

This commit is contained in:
Daniel Imms
2018-12-18 16:22:41 -08:00
parent d27b43d515
commit 04ac36fc16
4 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ export class Buffer implements IBuffer {
* @param startCol The column to start at.
* @param endCol The column to end at.
*/
public translateBufferLineToString(lineIndex: number, trimRight: boolean, startCol: number = 0, endCol: number = null): string {
public translateBufferLineToString(lineIndex: number, trimRight: boolean, startCol: number = 0, endCol?: number): string {
const line = this.lines.get(lineIndex);
if (!line) {
return '';