Closed stkid closed 1 year ago
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
broken indention at 'elif' when editting python files
well indented
deoplete version (SHA1): b3a03b25ecabcca444827b312e10439f8836289f
OS: Linux Mint 20.3 Una
neovim/Vim :version output:
:version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled May 10 2022 08:40:37) Included patches: 1-749 Modified by team+vim@tracker.debian.org Compiled by team+vim@tracker.debian.org Huge version with GTK3 GUI. Features included (+) or not (-): +acl +clientserver +diff +folding +langmap +mouse_dec +num64 +reltime +syntax +title +wildmenu +arabic +clipboard +digraphs -footer +libcall +mouse_gpm +packages +rightleft +tag_binary +toolbar +windows +autocmd +cmdline_compl +dnd +fork() +linebreak -mouse_jsbterm +path_extra +ruby -tag_old_static +user_commands +writebackup +autochdir +cmdline_hist -ebcdic +gettext +lispindent +mouse_netterm +perl +scrollbind -tag_any_white +vartabs +X11 -autoservername +cmdline_info +emacs_tags -hangul_input +listcmds +mouse_sgr +persistent_undo +signs +tcl +vertsplit -xfontset +balloon_eval +comments +eval +iconv +localmap -mouse_sysmouse +popupwin +smartindent +termguicolors +vim9script +xim +balloon_eval_term +conceal +ex_extra +insert_expand +lua +mouse_urxvt +postscript +sodium +terminal +viminfo +xpm +browse +cryptv +extra_search +ipv6 +menu +mouse_xterm +printer +sound +terminfo +virtualedit +xsmp_interact ++builtin_terms +cscope -farsi +job +mksession +multi_byte +profile +spell +termresponse +visual +xterm_clipboard +byte_offset +cursorbind +file_in_path +jumplist +modify_fname +multi_lang -python +startuptime +textobjects +visualextra -xterm_save +channel +cursorshape +find_in_path +keymap +mouse -mzscheme +python3 +statusline +textprop +vreplace +cindent +dialog_con_gui +float +lambda +mouseshape +netbeans_intg +quickfix -sun_workshop +timers +wildignore
:checkhealth or :CheckHealth result(neovim only): NA
:checkhealth
:CheckHealth
call plug#begin('~/.vim/plugged') Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' Plug 'Shougo/deoplete.nvim' call plug#end() set equalprg=indent\ -linux\ -il0\ 2>/dev/null let g:deoplete#enable_at_startup = 1
NA
I have figured out the cause is in the function deoplete#util#indent_current_line():
function! deoplete#util#indent_current_line() abort let pos = getpos('.') let len = len(getline('.')) let equalprg = &l:equalprg try setlocal equalprg= silent normal! == finally let &l:equalprg = equalprg let pos[2] += len(getline('.')) - len call setpos('.', pos) endtry endfunction
The 'equalprg' still affects though it is setted to null locally in fact, please confirm whether this is the original intention.
Thanks
I don't know the original intention. But it should not. I have removed it.
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
broken indention at 'elif' when editting python files
Expected
well indented
Environment Information
deoplete version (SHA1): b3a03b25ecabcca444827b312e10439f8836289f
OS: Linux Mint 20.3 Una
neovim/Vim
:version
output::checkhealth
or:CheckHealth
result(neovim only): NAProvide a minimal init.vim/vimrc with less than 50 lines (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
Generate a logfile if appropriate
Screenshot (if possible)
Upload the log file
NA
I have figured out the cause is in the function deoplete#util#indent_current_line():
The 'equalprg' still affects though it is setted to null locally in fact, please confirm whether this is the original intention.
Thanks