From 878c263a489b7e211eda31fa13a3d5ad9e120554 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 1 Apr 2017 15:15:52 +0200 Subject: 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 #1609) --- src/edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/edit.c') diff --git a/src/edit.c b/src/edit.c index 8aa15af83..fae48c612 100644 --- 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: -- cgit v1.2.1