Middle click in matlab editor does not work properly.

2 ビュー (過去 30 日間)
CBhushan
CBhushan 2012 年 3 月 31 日
I am working on Linux system and middle click on Linux is an easy shortcut to paste the last selected text. In matlab editor, I was able to use this functionality without any problem until last few days. But recently, it has stopped working properly. (update: See answers below for workaround and reasons)
Now, the middle click works fine when I am using it to paste stuff in the same tab (or same file) in editor. But when I change the tab in editor it no longer pastes the correct text. Instead it always pastes "1.0" (without quotes). I don't know what changed which broke this functionality.
Any ideas?
System details: Ubuntu 11.04 (64-bit) Kernel Linux 2.6.38-13-generic Matlab 7.12.0.635 (R2011a)

採用された回答

CBhushan
CBhushan 2012 年 7 月 1 日
Resetting the matlab profile - i.e. deleting the ~/.matlab solves the problem. In particular removing MATLABDesktop.xml from ~/.matlab/<matlab version>/ solved the problem for me.

その他の回答 (1 件)

CBhushan
CBhushan 2012 年 7 月 7 日
編集済み: CBhushan 2012 年 7 月 7 日
After playing around little bit more, I think I found the exact thing which reproduce the behaviour I mentioned.
I like to save screenspace (as I have small screens on my laptop). Hence, in matlab editor I combined "Editor toolbar" and "Editor cell mode toolbar" by dragging later. Please check the image below.
In the initial state ('Before' in image) middle click works fine. As expected, just selecting a text anywhere copies it and I can paste anywhere by clicking middle click. But after the rearrangement of toolbars ('After' in image), middle click stops working as expected (read the original question for details). Reverting back the toolbar arrangement as in 'Before' in image fixes the issue.
To me it looks like a bug. A minor bug, probably affecting only Linux distributions. Hopefully mathworks will fix it - I will try to send a bug report.

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by