[geany/geany] c69b8e: Fix and unify getting open/close/single comment ma...

Colomban Wendling ban at xxxxx
Sat Dec 3 23:25:12 UTC 2011


  Branch: refs/heads/master
  Home:   https://github.com/geany/geany

  Commit: c69b8eea234d193ba18571b2758670b521327334
      https://github.com/geany/geany/commit/c69b8eea234d193ba18571b2758670b521327334
  Author: Colomban Wendling <ban at herbesfolles.org>
  Date:   2011-12-03 (Sat, 03 Dec 2011)

  Changed paths:
    M src/editor.c
  M src/filetypes.c
  M src/filetypes.h
  M src/templates.c

  Log Message:
  -----------
  Fix and unify getting open/close/single comment markers

Add filetype_get_comment_open_close() to get appropriate start and end
comment markers from a filetype, and use it everywhere these markers
are fetched.

This fixes a crash in editor_insert_multiline_comment() if only single
comments are available (closes #3449635).


  Commit: f0de946d3eb6e6c8ba1bd3157bd31ddc2a0a9a51
      https://github.com/geany/geany/commit/f0de946d3eb6e6c8ba1bd3157bd31ddc2a0a9a51
  Author: Colomban Wendling <ban at herbesfolles.org>
  Date:   2011-12-03 (Sat, 03 Dec 2011)

  Changed paths:
    M src/callbacks.c
  M src/editor.c
  M src/editor.h

  Log Message:
  -----------
  Fix inserting multi-line comments with "Insert multiline comment"

"Insert multiline comment" did insert single-line style comment when
available even if multi-line style was also supported for the filetype.


Compare: https://github.com/geany/geany/compare/903e69b...f0de946



More information about the Commits mailing list