JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Remove unnecessary break
[st.git] / st.c
diff --git a/st.c b/st.c
index c9ef574..7dd5e04 100644 (file)
--- a/st.c
+++ b/st.c
@@ -992,7 +992,7 @@ selnotify(XEvent *e) {
                }
 
                /*
-                * As seen in selcopy:
+                * As seen in getsel:
                 * Line endings are inconsistent in the terminal and GUI world
                 * copy and pasting. When receiving some selection data,
                 * replace all '\n' with '\r'.
@@ -1781,7 +1781,6 @@ tsetmode(bool priv, bool set, int *args, int narg) {
        for(lim = args + narg; args < lim; ++args) {
                if(priv) {
                        switch(*args) {
-                               break;
                        case 1: /* DECCKM -- Cursor key */
                                MODBIT(term.mode, set, MODE_APPCURSOR);
                                break;
@@ -2674,7 +2673,9 @@ tresize(int col, int row) {
                if(0 < col && minrow < row) {
                        tclearregion(0, minrow, col - 1, row - 1);
                }
+               tcursor(CURSOR_SAVE);
                tswapscreen();
+               tcursor(CURSOR_LOAD);
        } while(orig != term.line);
 
        return (slide > 0);