]> git.lyx.org Git - lyx.git/blobdiff - src/minibuffer.h
small changes to ButtonController usage
[lyx.git] / src / minibuffer.h
index 07d26fa0eecc2d766d6ec9e70948a91135fa36d7..80cfc15ccb54089a12835484716cc428aa9e5531 100644 (file)
@@ -16,7 +16,8 @@ class LyXView;
 class MiniBuffer {
 public:
        ///
-       MiniBuffer(LyXView *o, FL_Coord x, FL_Coord y, FL_Coord h, FL_Coord w);
+       MiniBuffer(LyXView * o,
+                  FL_Coord x, FL_Coord y, FL_Coord h, FL_Coord w);
 
        ///
        bool shows_no_match;
@@ -54,17 +55,17 @@ public:
                               int, void *);
 private:
        ///
-       LyXView *owner;
+       LyXView * owner;
        ///
        string text;
        ///
        string text_stored;
        ///
-       FL_OBJECT *add(int, FL_Coord, FL_Coord, FL_Coord, FL_Coord);
+       FL_OBJECT * add(int, FL_Coord, FL_Coord, FL_Coord, FL_Coord);
         ///
-       FL_OBJECT *timer;
+       FL_OBJECT * timer;
        ///
-       FL_OBJECT *the_buffer;
+       FL_OBJECT * the_buffer;
        ///
        string cur_cmd;
         ///
@@ -75,7 +76,9 @@ private:
         int history_idx, history_cnt;
         ///
         void addHistory(string const &cmd) { 
-               if (history_cnt == 0 || (history_cnt>0 && cmd!= history[(history_cnt-1) % MAX_HISTORY])) {
+               if (history_cnt == 0
+                   || (history_cnt > 0
+                       && cmd != history[(history_cnt - 1) % MAX_HISTORY])) {
                    history[history_cnt % MAX_HISTORY] = cmd;
                    ++history_cnt;
                }