commit | 48c99164f44b336527fde004804158c386db2bb5 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Feb 18 18:42:52 2008 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Feb 18 18:42:52 2008 +0000 |
tree | fa17fa9e1f83e3da31d753f3c8a8ee251d25b69f | |
parent | 275a8a0c9b079432a6525a2c89dc981fe663fd80 [diff] [blame] |
updated for version 7.1-253
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index f207ee7..a87dab6 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c
@@ -365,6 +365,10 @@ 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;