Skip to content
Snippets Groups Projects
  1. Jan 14, 2014
  2. Jan 08, 2014
  3. Nov 25, 2013
    • Eike Ziller's avatar
      BinEditor: Fix selection behavior and painting · 2781ae2f
      Eike Ziller authored
      
      * there factually always is a selection (cursor position is always
      selected)
      * since there always is a selection, always paint a selection
      * since there factually always is a cursor position where you can type
      (even if you have a selection), always paint a (block) cursor
      * fix selection painting in hex region to match the column painting
      
      Reverts c4a3dbe3 and fixes the selection
      on find like originally proposed by Orgad
      
      Change-Id: Ife5395a42d35ac50103a63c77cb54491afd7dd1e
      Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
      2781ae2f
  4. Oct 09, 2013
  5. Sep 20, 2013
  6. Sep 06, 2013
  7. Aug 02, 2013
  8. Aug 01, 2013
  9. Jul 18, 2013
  10. Jul 17, 2013
  11. Jul 12, 2013
  12. Jul 10, 2013
  13. Jul 09, 2013
  14. Jun 24, 2013
  15. Jun 20, 2013
  16. May 29, 2013
  17. May 27, 2013
  18. May 22, 2013
  19. May 21, 2013
  20. May 07, 2013
  21. Apr 11, 2013
  22. Apr 03, 2013
  23. Apr 02, 2013
  24. Mar 12, 2013
  25. Feb 19, 2013
  26. Jan 29, 2013
  27. Jan 16, 2013
  28. Jan 08, 2013
    • Orgad Shaneh's avatar
      Remove braces for single lines of conditions · 29a93998
      Orgad Shaneh authored
      
      #!/usr/bin/env ruby
      
      Dir.glob('**/*.cpp') { |file|
        # skip ast (excluding paste, astpath, and canv'ast'imer)
        next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i
        s = File.read(file)
        next if s.include?('qlalr')
        orig = s.dup
        s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m|
          res = $&
          if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces
            res
          else
            res.gsub!('} else', 'else')
            res.gsub!(/\n +} *\n/m, "\n")
            res.gsub(/ *{$/, '')
          end
        }
        s.gsub!(/ *$/, '')
        File.open(file, 'wb').write(s) if s != orig
      }
      
      Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      29a93998
  29. Dec 28, 2012
Loading