Index: applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/CommandLine.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/CommandLine.java	(revision 35704)
+++ applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/CommandLine.java	(revision 35705)
@@ -75,5 +75,4 @@
     protected History history;
     protected MapFrame currentMapFrame;
-    protected MapMode previousMode;
 
     static final String pluginDir = Preferences.main().getPluginsDirectory().getAbsolutePath() + "/CommandLine/";
@@ -113,13 +112,4 @@
         currentCommand.resetLoading();
         parseSelection(ds.getSelected());
-        if (!(map.mapMode instanceof AnyAction
-           || map.mapMode instanceof DummyAction
-           || map.mapMode instanceof LengthAction
-           || map.mapMode instanceof NodeAction
-           || map.mapMode instanceof PointAction
-           || map.mapMode instanceof RelationAction
-           || map.mapMode instanceof WayAction)) {
-            previousMode = map.mapMode;
-        }
         if (currentCommand.currentParameterNum < currentCommand.parameters.size())
             setMode(Mode.SELECTION);
@@ -331,5 +321,5 @@
     public void endInput() {
         setMode(Mode.IDLE);
-        MainApplication.getMap().selectMapMode(previousMode);
+        MainApplication.getMap().selectMapMode(null);
         MainApplication.getMap().mapView.repaint();
     }
