Mercurial > vim
diff src/edit.c @ 11295:d772bf077b3f v8.0.0533
patch 8.0.0533: abbreviation doesn't work after backspacing newline
commit https://github.com/vim/vim/commit/878c263a489b7e211eda31fa13a3d5ad9e120554
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 1 15:15:52 2017 +0200
patch 8.0.0533: abbreviation doesn't work after backspacing newline
Problem: Abbreviation doesn't work after backspacing newline. (Hkonrk)
Solution: Set the insert start column. (closes https://github.com/vim/vim/issues/1609)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 01 Apr 2017 15:30:04 +0200 |
parents | e0309111d976 |
children | be499043ca70 |
line wrap: on
line diff
--- a/src/edit.c +++ b/src/edit.c @@ -9017,7 +9017,7 @@ ins_bs( #endif /* - * delete newline! + * Delete newline! */ if (curwin->w_cursor.col == 0) { @@ -9032,7 +9032,7 @@ ins_bs( (linenr_T)(curwin->w_cursor.lnum + 1)) == FAIL) return FALSE; --Insstart.lnum; - Insstart.col = MAXCOL; + Insstart.col = STRLEN(ml_get(Insstart.lnum)); } /* * In replace mode: