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

Removing first line if folded #53

Closed
Irubataru opened this issue Dec 5, 2016 · 1 comment
Closed

Removing first line if folded #53

Irubataru opened this issue Dec 5, 2016 · 1 comment

Comments

@Irubataru
Copy link

Not sure if this project is actively developed anymore, but I have two bugs (will add the second one in a separate issue).

For some reason the first line of my file is removed when I run ClangFormat both in normal mode and in visual mode if the line is folded. I have included a gif for clarity

header

I have tested this with a minimal vim configuration, this is my vimrc

set nocompatible
 
call plug#begin('~/.vim/plugged')

Plug 'rhysd/vim-clang-format'

call plug#end()

set tabstop=2
set expandtab
set shiftwidth=2

set foldmethod=syntax

"vim-clang-format
"{{{
let g:clang_format#code_style = "google"
let g:clang_format#style_options = {
            \ "BreakBeforeBraces" : "Stroustrup",
            \ "Standard" : "C++11"}
"}}}

nnoremap <buffer><Leader>cf :<C-u>ClangFormat<CR>
vnoremap <buffer><Leader>cf :ClangFormat<CR>

and my .vim folder has the Plug files + your plugin

@Irubataru Irubataru mentioned this issue Dec 5, 2016
@rhysd
Copy link
Owner

rhysd commented Apr 9, 2017

This should be addressed by 0f7cca8.

@rhysd rhysd closed this as completed Apr 9, 2017
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