Coder Social home page Coder Social logo

Comments (8)

lukas-reineke avatar lukas-reineke commented on August 25, 2024 1

Yea I can reproduce this. It is not directly related to the jumplist
Your script uses '", which is a mark set when the buffer exists.

Regardless, this plugin should set keepjumps as well 👍

I have a fix I think. I pushed an update to the develop branch, you can check if this works.

from indent-blankline.nvim.

ratheesh avatar ratheesh commented on August 25, 2024

I have observed one more issue. If I enable this plugin along with bufline of vim-airline plugin, I see that previous buffers are no longer valid upon nvim application restart. This issue is not observed if this plugin is disabled.
I don't have an easy way to demonstrate this issue, I will try to demonstrate this issue with minimal configuration.

from indent-blankline.nvim.

voldikss avatar voldikss commented on August 25, 2024

Hi @ratheesh , since that's another problem, could we open a new issue for that? One issue one problem makes issue management more convenient.

from indent-blankline.nvim.

voldikss avatar voldikss commented on August 25, 2024

First of all, thank you for the fantastic plugin!

Then comes the issue.

I have this autocmd in my vimrc. However, after installing this plugin, everytime I open a file it jumps to a constant position while not the last position the cursor was placed.

augroup JumpToLastPosition
  autocmd!
  autocmd BufReadPost *
    \ if line("'\"") > 1 && line("'\"") <= line("$") && &filetype != 'gitcommit' |
      \ exe "normal! g`\"" |
    \ endif
augroup END

The plugin can change the jumplist, that should be unexpected.

The issue was caused by this line.

autocmd Syntax * IndentBlanklineRefresh

And then this function changes the jumplist. I tried using "saving and restoring cursor position" but that didn't help...

function! indent_blankline#embedded#FindMatches(file, bufnr)

Could you have a look? @lukas-reineke

from indent-blankline.nvim.

voldikss avatar voldikss commented on August 25, 2024

Thank you @lukas-reineke . I tried develop branch and it fixs the issue. 💯

from indent-blankline.nvim.

voldikss avatar voldikss commented on August 25, 2024

Should I close this issue? Maybe you should open another issue in which @ratheesh 's issue is refered?

from indent-blankline.nvim.

lukas-reineke avatar lukas-reineke commented on August 25, 2024

yes @ratheesh please open another Issue, I'll need more information from you.

I'll leave this fix in develop for a while to make sure closing and reopening the buffers a lot doesn't slow things down.

from indent-blankline.nvim.

ratheesh avatar ratheesh commented on August 25, 2024

@lukas-reineke Sorry for the delay. Please close this issue. I will reopen issue mentioned by me in a new request.

from indent-blankline.nvim.

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.