Problem: Abbreviation doesn't work after backspacing newline. (Hkonrk)
Solution: Set the insert start column. (closes #1609)
#endif
/*
- * delete newline!
+ * Delete newline!
*/
if (curwin->w_cursor.col == 0)
{
(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:
set nomodified
iunmap <M-">
endfunc
+
+func Test_abbr_after_line_join()
+ new
+ abbr foo bar
+ set backspace=indent,eol,start
+ exe "normal o\<BS>foo "
+ call assert_equal("bar ", getline(1))
+ bwipe!
+ unabbr foo
+ set backspace&
+endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 533,
/**/
532,
/**/