mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: deprecate short struct init (#10842)
This commit is contained in:
@ -147,9 +147,9 @@ fn (b Buffer) view(from int, to int) View {
|
||||
}
|
||||
}
|
||||
raw := lines.join('\n')
|
||||
return {
|
||||
return View{
|
||||
raw: raw.replace('\t', strings.repeat(` `, b.tab_width))
|
||||
cursor: {
|
||||
cursor: Cursor{
|
||||
pos_x: x
|
||||
pos_y: b.cursor.pos_y
|
||||
}
|
||||
|
Reference in New Issue
Block a user