From 7f87c847ba8ec976c6ad345942f9867658a89ab2 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 10 Feb 2023 17:13:20 +0100 Subject: Unlimited undo/redo for Fl_Input_ and Fl_Text_Buffer (#558) (#676) --- src/Fl_Input.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Fl_Input.cxx') diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx index c191bfc6e..6dd026b00 100644 --- a/src/Fl_Input.cxx +++ b/src/Fl_Input.cxx @@ -1,7 +1,7 @@ // // Input widget for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2021 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -275,10 +275,10 @@ int Fl_Input::kf_undo() { return undo(); } -// Redo. (currently unimplemented.. toggles undo() instead) +// Redo. int Fl_Input::kf_redo() { if (readonly()) { fl_beep(); return 1; } - return kf_undo(); // currently we don't support multilevel undo + return redo(); } // Do a copy operation -- cgit v1.2.3