commit 3c329db0a50689ee2384db1ae02a98aca3bf0bac
Author: Enrico Forestieri <for...@lyx.org>
Date:   Sat Feb 25 14:13:02 2017 +0100

    Allow inserting consecutive dashes
    
    Because latex allows to do so, and there is no easy way to achieve this.
    This was apparently implemented to allow cycling between the various dash
    types, but it was a bad idea bringing no benefit and causing griefs.
---
 src/Text.cpp |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/Text.cpp b/src/Text.cpp
index c1af094..cc404b2 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -1057,11 +1057,6 @@ void Text::insertChar(Cursor & cur, char_type c)
                        par.eraseChar(pos - 1, 
cur.buffer()->params().track_changes);
                        c = 0x2014;
                        pos--;
-               } else if (par.getChar(pos - 1) == 0x2014) {
-                       // convert "----" to "-"
-                       par.eraseChar(pos - 1, 
cur.buffer()->params().track_changes);
-                       c = '-';
-                       pos--;
                }
        }
 

Reply via email to