consola font on windows, handle carriage return

This commit is contained in:
Felix Angell 2018-05-05 20:31:14 +01:00
parent d15c8b67ce
commit 4154d009ec
3 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@ tabs_are_spaces = true
match_braces = false
maintain_indentation = true
highlight_line = true
font_face = "Courier New"
font_face = "Consola"
font_size = 20
show_line_numbers = true

View File

@ -1012,6 +1012,11 @@ func (b *Buffer) renderAt(ctx *strife.Renderer, rx int, ry int) {
var x_col int
for idx, char := range currLine {
switch char {
// 13 is a carriage return
case 13:
continue
case '\n':
x_col = 0
y_col += 1

BIN
phi.exe Normal file

Binary file not shown.