Mercurial > vim
changeset 1538:2750661e93d5 v7.1.253
updated for version 7.1-253
author | vimboss |
---|---|
date | Mon, 18 Feb 2008 18:42:52 +0000 |
parents | ff77f541d69d |
children | b62965091b8d |
files | src/ex_cmds.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -365,6 +365,10 @@ ex_sort(eap) int sort_oct; /* sort on octal number */ int sort_hex; /* sort on hex number */ + /* Sorting one line is really quick! */ + if (count <= 1) + return; + if (u_save((linenr_T)(eap->line1 - 1), (linenr_T)(eap->line2 + 1)) == FAIL) return; sortbuf1 = NULL;