mirror of
https://github.com/felixangell/phi.git
synced 2024-08-16 19:20:21 +03:00
consola font on windows, handle carriage return
This commit is contained in:
parent
d15c8b67ce
commit
4154d009ec
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user