Mercurial > vim
diff src/ex_cmds.c @ 1538:2750661e93d5 v7.1.253
updated for version 7.1-253
author | vimboss |
---|---|
date | Mon, 18 Feb 2008 18:42:52 +0000 |
parents | cc4fe241baa3 |
children | 8dc36a64ae8b |
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;