Git Product home page Git Product logo

Comments (11)

weilbith avatar weilbith commented on May 31, 2024 1

Okay, totally fine. Take your time, nothing urgent. πŸ™ƒ

from git-messenger.vim.

weilbith avatar weilbith commented on May 31, 2024 1

Yes it works like charm now. 😊
@alfunx thanks for your investigation and the fix!
@rhysd thanks for the nice help for this issue. πŸ‘

from git-messenger.vim.

rhysd avatar rhysd commented on May 31, 2024

Thank you for reporting this. It sounds a bug on calculating width of the window. Let me check.

from git-messenger.vim.

rhysd avatar rhysd commented on May 31, 2024

I tried on my project, but could not reproduce this:

Case1: Commit hash line is the longest

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2019-11-28 13 46 57

Case2: Author line is the longest:

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2019-11-28 13 51 44

Maybe some option in vimrc causes this issue.

from git-messenger.vim.

rhysd avatar rhysd commented on May 31, 2024

@weilbith Can I try in the same situation? If ok, please let me know:

  • Repository URL you could reproduce this issue
  • Git commit hash
  • File path you opened

from git-messenger.vim.

rhysd avatar rhysd commented on May 31, 2024

And please check if you set g:git_messenger_max_popup_width. The default value is v:null

:echo g:git_messenger_max_popup_width

from git-messenger.vim.

weilbith avatar weilbith commented on May 31, 2024

Hey, thanks for you help!

And please check if you set g:git_messenger_max_popup_width. The default value is v:null

I can confirm that this is not set by myself and the output is the default value.


@weilbith Can I try in the same situation? If ok, please let me know:

Here we go:

  • poanetwork/blockscout
  • master
  • apps/block_scout_web/assets/css/components/_navbar.scss
    • calling it on line 7 places the commit hash on the next line
    • on line 8 it looks fine
    • line 14 shows an example of a NL for the author.

My screen is wide enough. It floating window(s) should by far not reach the maximum possible width.

from git-messenger.vim.

weilbith avatar weilbith commented on May 31, 2024

@rhysd can you reproduce my issue with the given instructions?

from git-messenger.vim.

rhysd avatar rhysd commented on May 31, 2024

Thank you for the information. I'm sorry for the delay, I don't have sufficient time to look into this. But I think I can try this weekend.

from git-messenger.vim.

alfunx avatar alfunx commented on May 31, 2024

@weilbith I could narrow it down to set foldcolumn=3 (in https://github.com/weilbith/vim-blueplanet/blob/master/options.vim#L127). Removing that fixes this issue, which suggests this option is also set for the popup.

@rhysd A possible (and IMO clean) solution could be to set 'style': 'minimal' in the configuration for nvim_open_win(), e.g. in https://github.com/rhysd/git-messenger.vim/blob/master/autoload/gitmessenger/popup.vim#L108-L115. The minimal style is most useful when "displaying a temporary float where the text should not be edited" (from :h nvim_open_win()).

from git-messenger.vim.

rhysd avatar rhysd commented on May 31, 2024

@alfunx

Thank you so much for narrowing down this issue. I could not notice the option because I set 0 to foldcolumn. I'm not sure that the option is root cause of this issue, but I could see the unintended line wrapping with set foldcolumn=3.

@weilbith

Would you update this plugin to the latest and check if this issue still happens in your local or not. If it still happens, I'll reopen this issue.

from git-messenger.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.