Mercurial > vim
comparison src/edit.c @ 13788:a27d380b257f v8.0.1766
patch 8.0.1766: expanding abbreviation doesn't work
commit https://github.com/vim/vim/commit/c3c3e698966fac86dee94799b70947defb85440d
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 26 22:30:33 2018 +0200
patch 8.0.1766: expanding abbreviation doesn't work
Problem: Expanding abbreviation doesn't work. (Tooth Pik)
Solution: Return OK instead of FALSE and FAIL instead of TRUE. (Christian
Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 26 Apr 2018 22:45:07 +0200 |
parents | cc21507ee4b1 |
children | 08370aad873d |
comparison
equal
deleted
inserted
replaced
13787:458d0b50ba95 | 13788:a27d380b257f |
---|---|
10207 ins_eol(int c) | 10207 ins_eol(int c) |
10208 { | 10208 { |
10209 int i; | 10209 int i; |
10210 | 10210 |
10211 if (echeck_abbr(c + ABBR_OFF)) | 10211 if (echeck_abbr(c + ABBR_OFF)) |
10212 return FALSE; | 10212 return OK; |
10213 if (stop_arrow() == FAIL) | 10213 if (stop_arrow() == FAIL) |
10214 return TRUE; | 10214 return FAIL; |
10215 undisplay_dollar(); | 10215 undisplay_dollar(); |
10216 | 10216 |
10217 /* | 10217 /* |
10218 * Strange Vi behaviour: In Replace mode, typing a NL will not delete the | 10218 * Strange Vi behaviour: In Replace mode, typing a NL will not delete the |
10219 * character under the cursor. Only push a NUL on the replace stack, | 10219 * character under the cursor. Only push a NUL on the replace stack, |