+1
-1
@@ -77,7 +77,7 @@ static void editorDrawPane(struct abuf* ab, EditorPane* pane)
|
||||
{
|
||||
start_offset = pane->x_offset;
|
||||
|
||||
if (buf->filename[strlen(buf->filename) - 1] == 'c')
|
||||
if (buf->filename[strlen(buf->filename) - 1] == 'c' || buf->filename[strlen(buf->filename) - 1] == 'h')
|
||||
{
|
||||
// Render line with syntax highlighting, constrain to pane width
|
||||
highlighted = highlight_line(
|
||||
|
||||
Reference in New Issue
Block a user