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

Status bar doesn't update with filename when creating a new file #42

Open
yarbelk opened this issue Jul 2, 2014 · 1 comment
Open

Comments

@yarbelk
Copy link

yarbelk commented Jul 2, 2014

If i type

vigo some_file

the status line stays as

---------- unnamed (row,col) ----------------

even after writing to file

@yarbelk
Copy link
Author

yarbelk commented Jul 3, 2014

I think we should change up the SetStatus to construct the status from data that is stored rather than passed in.

template.New("status").Parse("{{ if Name }} {{Name}} {{else}} (new buffer} {{end}} {{ if Dirty }} [ * ] {{end}}")

or something. Part of this issue is that the setStatus runs on Editor, but save runs on buffer - which doesn't have an editor pointer so we can't update the status on save.

I'll see about doing this.

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

1 participant