Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last character of type being colored incorrectly. #1357

Closed
wayneashleyberry opened this issue Jul 13, 2017 · 2 comments
Closed

Last character of type being colored incorrectly. #1357

wayneashleyberry opened this issue Jul 13, 2017 · 2 comments

Comments

@wayneashleyberry
Copy link

Behavior

Last character of type being colored incorrectly.

Steps to reproduce:

Try the following code in vim, with only vim-go and any color scheme. Look at the second last line.

package main

type Video struct {
	ID  string `json:"id,omitempty"`
	URL string `json:"url,omitempty"`
}

func main() {
	v := &Video{}
}

Configuration

call plug#begin('~/.config/nvim/plugged')
Plug 'fatih/vim-go'
call plug#end()

let g:go_auto_sameids = 1
let g:go_auto_type_info = 1
let g:go_fmt_command='goimports'
let g:go_highlight_build_constraints = 1
let g:go_highlight_extra_types = 1
let g:go_highlight_fields = 1
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_operators = 1
let g:go_highlight_structs = 1
let g:go_highlight_types = 1

Screenshots

screen shot 2017-07-13 at 6 01 21 pm

screen shot 2017-07-13 at 6 05 36 pm

@arp242
Copy link
Contributor

arp242 commented Jul 22, 2017

This is caused by cfa9713 (my fault I'm afraid). I don't think we need to add the highlight offset anymore since that patch. Let me test and push a PR.

@wayneashleyberry
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants