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

cursor won't stop blinking #28

Closed
nwaywood opened this issue Jun 12, 2016 · 3 comments
Closed

cursor won't stop blinking #28

nwaywood opened this issue Jun 12, 2016 · 3 comments
Labels

Comments

@nwaywood
Copy link

nwaywood commented Jun 12, 2016

I'm not sure if its a bug or I'm doing something wrong, but I have tried

<dom-module id="nyaovim-app">
  <template>
    <style>
      /* CSS configurations here */
    </style>

    <!-- Component tags here -->
    <neovim-editor id="nyaovim-editor" 
        argv$="[[argv]]" 
        font-size="14" 
        font="Fura Mono for Powerline Plus Nerd File Types,monospace"></neovim-editor>
  </template>
</dom-module>
<script>
    const neovim_element = document.getElementById('neovim');
    neovim_element.editor.blink_cursor = false;
</script>

and

<dom-module id="nyaovim-app">
  <template>
    <style>
      /* CSS configurations here */
    </style>

    <!-- Component tags here -->
    <neovim-editor id="nyaovim-editor" 
        argv$="[[argv]]" 
        font-size="14" 
        blink-cursor="false"
        font="Fura Mono for Powerline Plus Nerd File Types,monospace"></neovim-editor>
  </template>
</dom-module>

but the cursor doesn't stop blinking in normal mode.

@rhysd rhysd added bug and removed bug labels Jul 31, 2016
@rhysd
Copy link
Owner

rhysd commented Jul 31, 2016

Hmm, blink-cursor="false" should stop blinking cursor. I need to investigate.

@nwaywood
Copy link
Author

nwaywood commented Aug 3, 2016

@rhysd Thanks, and just to clarify, I am referring to the cursor blinking in normal mode.

@rhysd rhysd closed this as completed in 9a2b528 Aug 7, 2016
@rhysd
Copy link
Owner

rhysd commented Aug 7, 2016

Please use no-blink-cursor attribute instead as below:

<neovim-editor id="nyaovim-editor" 
    argv$="[[argv]]" 
    font-size="14" 
    no-blink-cursor
    font="Fura Mono for Powerline Plus Nerd File Types,monospace"></neovim-editor>

I renamed the attribute because HTML element's attribute can't have default true value.

Polymer/polymer#1812

I'll ship this fix in v0.7.0.

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

No branches or pull requests

2 participants