home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.1 / 7.1.253 < prev    next >
Encoding:
Internet Message Format  |  2008-02-17  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.1.253
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.1.253
  11. Problem:    ":sort" doesn't work in a one line file. (Patrick Texier)
  12. Solution:   Don't sort if there is only one line. (Dominique Pelle)
  13. Files:        src/ex_cmds.c
  14.  
  15.  
  16. *** ../vim-7.1.252/src/ex_cmds.c    Sat Jan 19 15:55:51 2008
  17. --- src/ex_cmds.c    Mon Feb 18 19:38:02 2008
  18. ***************
  19. *** 365,370 ****
  20. --- 365,374 ----
  21.       int        sort_oct;        /* sort on octal number */
  22.       int        sort_hex;        /* sort on hex number */
  23.   
  24. +     /* Sorting one line is really quick! */
  25. +     if (count <= 1)
  26. +     return;
  27.       if (u_save((linenr_T)(eap->line1 - 1), (linenr_T)(eap->line2 + 1)) == FAIL)
  28.       return;
  29.       sortbuf1 = NULL;
  30. *** ../vim-7.1.252/src/version.c    Thu Feb 14 22:19:39 2008
  31. --- src/version.c    Mon Feb 18 19:39:24 2008
  32. ***************
  33. *** 668,669 ****
  34. --- 668,671 ----
  35.   {   /* Add new patch number below this line */
  36. + /**/
  37. +     253,
  38.   /**/
  39.  
  40. -- 
  41. "You know, it's at times like this when I'm trapped in a Vogon airlock with
  42. a man from Betelgeuse and about to die of asphyxiation in deep space that I
  43. really wish I'd listened to what my mother told me when I was young!"
  44. "Why, what did she tell you?"
  45. "I don't know, I didn't listen!"
  46.         -- Arthur Dent and Ford Prefect in Douglas Adams'
  47.            "The Hitchhiker's Guide to the Galaxy"
  48.  
  49.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  50. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  51. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  52.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  53.